View Single Post
Old 09-13-2008, 07:48 AM   #13
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Hi Siman007,

I'm using the scratchbox environment to compile for my Iliad. (see sticky post at the top of this forum). It takes the arm compiler without asking questions :-)

For gtk I use the tutorial at: http://library.gnome.org/devel/gtk-t...able/x111.html
gcc helloworld.c -o helloworld \
`pkg-config --cflags gtk+-2.0`\
`pkg-config --libs gtk+-2.0`

echo `pkg-config --libs gtk+-2.0` will show you the linker flags. The flags depend on the libraries installed, for me it expands to:

-L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

Happy coding!
Hansel

Last edited by hansel; 09-13-2008 at 07:52 AM.
hansel is offline   Reply With Quote