Re: Problmes building Qt/GTK AWT peer (gcc 4.3 arm-linux)
Andrew Haley <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
ffileppo wrote: >>> here is libjava/config.log in build directory: >>> >>> ... >>> configure:25117: checking for XTestQueryExtension in -lXtst >>> configure:25152: /root/tmp2/gcc-4.3.0/peer-gtk/./gcc/xgcc -B/root/tmp2/gcc-4.3.0/peer-gtk/./gcc/ -B/root/tmp/f8/4install/arm-linux-gnueabi/bin/ -B/root/tmp/f8/4install/arm-linux-gnueabi/lib/ -isystem /root/tmp/f8/4install/arm-linux-gnueabi/include -isystem /root/tmp/f8/4install/arm-linux-gnueabi/sys-include -o conftest -O2 -g -g -O2 conftest.c -lXtst -L/usr/lib >&5 >>> /root/tmp/f8/binutils/arm-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libXtst.so when searching for -lXtst >>> /root/tmp/f8/binutils/arm-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libXtst.a when searching for -lXtst >>> /root/tmp/f8/binutils/arm-linux-gnueabi/bin/ld: cannot find -lXtst >>> collect2: ld returned 1 exit status >>> configure:25158: $? = 1 >>> ... >>> >>> >>> How can I fix this? >> It's telling you that the libxtst installed in your sysroot is wrong. >> >> Have a look at the libXtst.so in your sysroot. Is it an ARM Linux shared >> library? > > I see that there is no libXtst.so in my sysroot (I have been using fedora 8 arm root filesystem). > > I guess I have to crosscompile libXtst library first. I wouldn't bother; it's in http://ftp.linux.org.uk/pub/linux/arm/fedora/pub/fedora/linux/releases/8/Everything/arm/os/Packages/libXtst* > However I was wondering why it is looking for libXtst in /usr/lib instead of sysroot directories > (I used --with-sysroot=/root/tmp/f8/rootfs-f8). It is looking in the sysroot directories first, but libXtst is missing. > Should I try to pass --x-libraries option? As far as I know the XTest Extension (libXtst) XServer support should only be required if you're using --enable-java-awt=gtk. Maybe someone familiar with the AWT peers can help. Andrew.