Problmes building Qt/GTK AWT peer (gcc 4.3 arm-linux)
ffileppo
ffileppo@libero.it
Thu May 15 19:35:00 GMT 2008
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.
Configure:
../configure --prefix=/root/tmp/gcc-install --with-sysroot=/root/tmp/f8/rootfs-f8 --disable-libssp --disable-libgomp --disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib --disable-sjlj-exceptions --target=arm-linux-gnueabi --enable-languages=c,c++,java --with-build-time-tools=/root/tmp/f8/binutils/arm-linux-gnueabi/bin --with-ld=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/ld --with-nm=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/nm --with-strip=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/strip --with-as=/root/tmp/f8/binutils/arm-linux-gnueabi/bin/as --with-float=soft --enable-java-awt=gtk
---------------------
Error with qt peer:
checking for iconv declaration... (cached)
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for pkg-config... /usr/bin/pkg-config
checking for QtCore QtGui >= 4.1.0... yes
checking QT_CFLAGS... -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
checking QT_LIBS... -pthread -L/usr/X11R6/lib -lQtGui -laudio -lXt -lpng -lSM -lICE -lQtCore -lz -lgthread-2.0 -lrt -lglib-2.0 -lpthread -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -ldl
checking for /usr/include/qt4/QtGui/QWidget... configure: error: cannot check for file existence when cross compiling
configure: error: ../../../../libjava/classpath/configure failed for classpath
make[1]: *** [configure-target-libjava] Error 1
Configure same as before, expect for --enable-java-awt=qt
Are there any workarounds for these errors?
Thank you,
Francesco
More information about the Java
mailing list