On Thu, Aug 20, 2009 at 1:02 PM, Rohit Jain<[email protected]> wrote: > Hey, > I have to cross compile a clutter code for ARM7/CORTEX-A8 based Beagle > Board. I have installed theĀ arm-none-linux-gnueabi-gcc toolchain part of > CodeSourcery. For example if i try to cross compile a gtk code using this > toolchain i get following error :- > > arm-none-linux-gnueabi-gcc sample_gtk.c -o sample_gtk_arm `pkg-config > --cflags --libs gtk+-2.0` > cc1: warning: include location "/usr/include/gtk-2.0" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/atk-1.0" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/cairo" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/pango-1.0" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/pixman-1" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/freetype2" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/directfb" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/libpng12" is unsafe for > cross-compilation > cc1: warning: include location "/usr/include/glib-2.0" is unsafe for > cross-compilation > /home/net4u/CodeSourcery/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: > cannot find -lgtk-x11-2.0 >
You have not set your CFLAGS and LDFLAGS correctly and I will suggest you to use BeagleBoard's OpenEmbedded build if you are not familiar with Cross Compilation procedure. Regards Amit Pundir -- To unsubscribe send a mail to [email protected]
