[Java-gnome-developer] GCJ support for Java-GNOME
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2001-09-07 18:53:28
|
I have just checked the changes for gcj compilation into CVS. This is the first major step towards release 0.7.0 which I hope to roll out late next week. I anticipate much interest in this release so any testing help over the next week would be greatly appreciated. In order to build the bindings with gcj native support you must have gcj 3.0.0 or greater. There are new arguments to the configure scripts that facilitate the build. They are: --with-gcj-compile Compile the bindings with native gcj support --with-gcj-prefix Specify the root directory of the gcc tree which contains gcj. If gcj is in your path just type ./configure --with-gcj-support and you should be ok. The bindings will build in the standard fashion creating gtk.jar, gnome.jar, libGTKJava.so, and libGNOMEJava.so. In addition, the build process will also create libGTKJar.so and libGNOMEJar.so. These files contain the binary form of the java classes in the jar files. The build process will also create a binary version of TestGTK and TestGNOME. In order to compile the examples using gcj you will need to have libgcj.jar in your CLASSPATH and execute the following command: gcj -fPIC -fjni -g -O -o Calculator --main=Calculator \ -L<path to shared objects> Calculator.java -lGTKJar -lGNOMEJar I will be adding FAQs regarding this feature. Please let me know if you have anything you think should be added to the FAQ. Thanks --- ------------------------------------ Jeffrey S. Morgan Email: jef...@br... |