[maemo-developers] Problems compiling HelloWorld for gtk+
From: Kees Jongenburger kees.jongenburger at gmail.comDate: Sat Jan 23 23:21:44 EET 2010
- Previous message: Problems compiling HelloWorld for gtk+
- Next message: Problems compiling HelloWorld for gtk+
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Jan 23, 2010 at 8:16 PM, <acano at dsic.upv.es> wrote: > Hi Everyone, Hi A, > > I write you because I am having problems when compiling the program > holamundo for gtk that is shown in the documentacion. > > [sbox-FREMANTLE_ARMEL: ~/proyectos/holamundo] > gcc -Wall -g gtk_holamundo.c > `pkg-config --cflags gtk+-2.0` -o gtk_holamundo `pkg-config --libs > gtk+-2.0` > /scratchbox/compilers/host-gcc/bin/ld: skipping incompatible > /usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0 > /scratchbox/compilers/host-gcc/bin/ld: cannot find -lgtk-x11-2.0 > collect2: ld returned 1 exit status > [sbox-FREMANTLE_ARMEL: ~/proyectos/holamundo] > It looks like your compiler and libs are not compatible with each other. Because I see /scratchbox/compilers/host-gcc/bin/ld I would guess you somehow are not using the compiler targeting arm can you send us the output of gcc -dumpmachine and a "file" on the so files (here is what it looks like for me) [sbox-FREMANTLE_ARMEL: ~] > gcc -dumpmachine arm-none-linux-gnueabi [sbox-FREMANTLE_ARMEL: ~] > file /usr/lib/libgtk-x11-2.0.so /usr/lib/libgtk-x11-2.0.so: symbolic link to `libgtk-x11-2.0.so.0.1400.7' [sbox-FREMANTLE_ARMEL: ~] > file /usr/lib/libgtk-x11-2.0.so.0.1400.7 /usr/lib/libgtk-x11-2.0.so.0.1400.7: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), stripped Greetings
- Previous message: Problems compiling HelloWorld for gtk+
- Next message: Problems compiling HelloWorld for gtk+
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]