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:
>>> Hi guys,
>>>
>>> I'm facing problems building gcj with Qt and GTK+ AWT peer (arm-linux-gnueabi).
>>>
>>> Here is the error I'm getting when building gcj with gtk peer:
>>>
>>> ...
>>> checking for gtk+-2.0 >= 2.4... yes
>>> checking GTK_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1
>>> checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>>> checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... yes
>>> checking GLIB_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
>>> checking GLIB_LIBS... -pthread -lgthread-2.0 -lrt -lglib-2.0
>>> checking for libart-2.0 >= 2.1... yes
>>> checking LIBART_CFLAGS... -I/usr/include/libart-2.0
>>> checking LIBART_LIBS... -lart_lgpl_2
>>> checking for XTestQueryExtension in -lXtst... no
>>> configure: error: libXtst not found, required by java.awt.Robot
>>> make[1]: *** [configure-target-libjava] Error 1
>>>
>>> I have both libxtst6 and libxtst-dev packages installed on my box.
>> You're trying to cross-compile libgcj.  It might be that the
>> configure test is wrong.  Have a look at config.log in the libgcj
>> build directory.
>>
>> Andrew.
>>
> 
> Hi Andrew,
> 
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.