This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problmes building Qt/GTK AWT peer (gcc 4.3 arm-linux)
- From: "ffileppo" <ffileppo at libero dot it>
- To: "aph" <aph at redhat dot com>
- Cc: "java" <java at gcc dot gnu dot org>
- Date: Fri, 16 May 2008 11:42:25 +0200
- Subject: Re: Problmes building Qt/GTK AWT peer (gcc 4.3 arm-linux)
> >
> > 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?
>
> Andrew.
>
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.
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).
Should I try to pass --x-libraries option?
Thank you,
Francesco