Re: [gtk+osx] Compiling GTK Helloworld GTK app on MAC
Status: Beta
Brought to you by:
jralls
From: Charles L. <cl...@gh...> - 2005-03-10 18:37:12
|
John Bender said: > gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags > gtk+-2.0``pkg-config --libs gtk+-2.0` This should work under Fink. If not, you may want to try asking on one of the fink lists, since they handle GTK+-on-X11 issues all the time. (As Andy mentioned, gtk+osx aims to eliminate the need for X11 when running GTK+ on OS X, and the gtk+ packages distributed via Fink all require an X11 server to run.) > make sure you change it to this > > gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags > gtk+-2.0``pkg-config --libs gtk+-2.0` -I/sw/lib > > note the difference on the end is -I/sw/lib which is where fink puts > the gtk libs. I'm confused as to why this worked... Fink shouldn't have include files i= n /sw/lib. Not sure if this was a cut-n-paste error, but you probably want to put a space between the two backtick expressions (i.e. "` `", not "``"). --=20 Charles Lepple cl...@gh... |