GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Dec 20, 2014 3:45 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Compilation of gtk_main.c file
PostPosted: Mon Jan 07, 2008 4:20 am 
Offline

Joined: Fri Jan 04, 2008 12:33 pm
Posts: 1
Hi,

Can anyone tell me how to compile the gtk_main.c file and create a new library?

I am not finding any Makefile present in GTK+ environment for creating a new library after modifying the source files.

Thanks in Advance,
Saravana.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 07, 2008 12:04 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
Are you referring to compiling the GTK library? Or at least gtkmain.c in that library? If so, there is an INSTALL file explaining it... it's the common POSIX install method:

./configure
make
make install

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 15, 2008 8:02 am 
Offline
GTK+ Guru

Joined: Thu Jun 21, 2007 1:52 pm
Posts: 198
Location: Wilkes Barre Pa
2.3. How do I configure/compile GTK+? [GTK 2.x]
Generally, the minimum you need to do is issue the commands:
./configure
make
make install
in the GTK+ source directory.
This generally also holds true for each of the packages that GTK+ depends upon, listed above.
There are various options that you can pass to the configure script in order to change its default settings. The one that you are most likely to want to use is the --prefix argument, which defines where the package is to be install, e.g.
./configure --prefix=/usr
http://www.gtk.org/faq/#AEN261

How to compile programs useing the gtk+ librarys
http://www.gtk.org/tutorial/c39.html#SEC-HELLOWORLD

Compiling "C" And "C++" Programs On Unix Systems - gcc/g++
http://users.actcom.co.il/~choo/lupg/tu ... -unix.html

Automating Program Compilation - Writing Makefiles
http://users.actcom.co.il/~choo/lupg/tu ... files.html

Building And Using Static And Shared "C" Libraries
http://users.actcom.co.il/~choo/lupg/tu ... aries.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group