Hello,
I am trying to cross compile simple gtk+ apps for my AT91sam9263EK board running angstrom linux(2.6.25) using arm-angstrom-linux-gnueabi-gcc toolchain.
The gtk+ include and lib directories are already installed in the staging
directory.
but when I compile the program as
Quote:
[deven@tux widgets]$ ~/OE/tmp/cross/bin/arm-angstrom-linux-gnueabi-gcc -o hellogtk hellogtk.c $(/home/OE/tmp/staging/i686-linux/bin/pkg-config gtk+-2.0 --cflags) $(/home/OE/tmp/staging/i686-linux/bin/pkg-config gtk+-2.0 --libs)
I get following errors:
Quote:
/home/OE/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: warning: libXfixes.so.3, needed by /home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
/home/OE/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: warning: libgcrypt.so.11, needed by /home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libgtk-x11-2.0.so, not found (try using -rpath or -rpath-link)
...
...
...
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libgdk-x11-2.0.so: undefined reference to `XShapeQueryVersion'
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libpng12.so: undefined reference to `inflateReset'
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libX11.so: undefined reference to `xcb_connection_has_error'
/home/OE/tmp/staging/arm-angstrom-linux-gnueabi/lib/libX11.so: undefined reference to `xcb_xlib_lock'
...
...
collect2: ld returned 1 exit status
I had set the PKG_CONFIG_PATH appropriatly but the error is comming.
Now I am really stuck I searched a lot on the net for linking the appropriate libraries but there is not much help.
Thanks and Regards
Devendra