GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compilation of gtk_main.c file

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
saravana.rect



Joined: 04 Jan 2008
Posts: 1

PostPosted: Mon Jan 07, 2008 4:20 am    Post subject: Compilation of gtk_main.c file Reply with quote

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.
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 428
Location: Portland, OR USA

PostPosted: Mon Jan 07, 2008 12:04 pm    Post subject: Reply with quote

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
Back to top
caracal
GTK+ Geek


Joined: 21 Jun 2007
Posts: 75
Location: Wilkes Barre Pa

PostPosted: Tue Jan 15, 2008 8:02 am    Post subject: Reply with quote

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/tutorials/c-on-unix/c-on-unix.html

Automating Program Compilation - Writing Makefiles
http://users.actcom.co.il/~choo/lupg/tutorials/writing-makefiles/writing-makefiles.html

Building And Using Static And Shared "C" Libraries
http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP