[Java-gnome-developer] Compiling 0.7.1 on Red Hat 7.2
Brought to you by:
afcowie
From: Paul G. <pau...@bi...> - 2002-03-06 12:20:54
|
Hi all, In between all the Korean spam :-), has anyone managed to compile java-gnome 0.7.1 in the following environment? Red Hat 7.2 with the following packages: gcc3-3.0.1-3 gcc3-java-3.0.1-3 libgcc-3.0.1-3 libgcj-2.96-27 libgcj3-devel-3.0.1-3 libgcj3-3.0.1-3 jikes-1.14-1 IBMJava2-SDK-1.3-9.0 I'd really like to be able to build a gcj version of java-gnome. Has anyone done this? I found at least the following patch had to be applied, just to build the non-gcj version: --- java-gnome-0.7.1-orig/src/Makefile.in Wed Sep 12 22:14:35 2001 +++ java-gnome-0.7.1/src/Makefile.in Wed Mar 6 22:08:25 2002 @@ -47,7 +47,7 @@ $(JAVAC) -classpath $(CLASSPATH) $< .c.o: - gcc -c $(CFLAGS) $< -o $@ $(JAVA_INCLUDES) $(GTK_CFLAGS) \ + $(GCC) -c $(CFLAGS) $< -o $@ $(JAVA_INCLUDES) $(GTK_CFLAGS) \ $(GNOME_CFLAGS) $(LIBGLADE_CFLAGS) -D@MACRO_FLAG@ .java.o: I suspect the .java.o rule in the same file would need to be modified to build a GCJ version in this configuration. I tried this, but configure fails before it ever gets there, and i can't see a way to override $(GCJ) like you can $(CC). Being able to build with jikes would be a bonus, too, since it's so much faster? I tried uncommenting the jikes line in aclocal.m4 (and changing it to use /usr/bin/jikes), but no joy. I also tried 'make JAVAC="jikes -bootclasspath /opt/IBMJava2-13/jre/lib/rt.jar"', but no luck there, either - it fails with CLASSPATH problems when trying to compile all the gnu/gtk/... files. Any ideas? Regards, Paul http://paulgear.webhop.net |