View Single Post
Old 09-19-2008, 09:43 AM   #14
mind began at the beginning.
Posts: 24
Karma: 11
Join Date: Sep 2007
Device: iLiad
Originally Posted by hansel View Post
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:
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!
That's similar to what I did. Thanks for providing this information.
Regards, Gil.
mind is offline   Reply With Quote