I am trying to build java with gtk support. I configured with -

 ../gcc/configure --prefix=/usr/local/java --enable-languages=c,c++,java
--enable-java-awt=gtk --enable-gtk-cairo --x-includes=/usr/x11R6/include
--x-libraries=/usr/x11R6/lib

And I get this output -

checking for pkg-config... /usr/local/bin/pkg-config
checking for gtk+-2.0 >= 2.4... yes
checking GTK_CFLAGS... -I/usr/local/include/gtk-2.0
-I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/local/include/pango-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
checking GTK_LIBS... -L/usr/local/lib -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 -lglib-2.0 -lintl -liconv  
checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... yes
checking GLIB_CFLAGS... -D_REENTRANT -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include  
checking GLIB_LIBS... -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -lintl -liconv  
checking for libart-2.0 >= 2.1... yes
checking LIBART_CFLAGS... -I/usr/local/include/libart-2.0  
checking LIBART_LIBS... -L/usr/local/lib -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
make: *** [all] Error 2
[dranta:~/gfortran/ibin] dir% ls /usr/X11R6/lib/libXtst.*
/usr/X11R6/lib/libXtst.6.1.dylib        /usr/X11R6/lib/libXtst.a
/usr/X11R6/lib/libXtst.6.dylib          /usr/X11R6/lib/libXtst.dylib


Since libXtst is where it is supposed to be, it not clear what the problem is.


-- 
           Summary: configure: error: libXtst not found, required by
                    java.awt.Robot
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
  GCC host triplet: powerpc-apple-darwin8.7.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29460

Reply via email to