[Pkg-kde-commits] rev 280 - trunk/packages/kdebindings/debian
Adeodato Sim??
dato-guest@haydn.debian.org
Mon, 29 Nov 2004 14:00:28 -0700
Author: dato-guest
Date: 2004-11-29 13:59:58 -0700 (Mon, 29 Nov 2004)
New Revision: 280
Modified:
trunk/packages/kdebindings/debian/changelog
trunk/packages/kdebindings/debian/libkde3-java.README.Debian
trunk/packages/kdebindings/debian/libqt3-java.README.Debian
Log:
* Added section to libqt3-java.README.Debian about generating native
executables. (Closes: #282483)
Modified: trunk/packages/kdebindings/debian/changelog
===================================================================
--- trunk/packages/kdebindings/debian/changelog 2004-11-29 00:15:35 UTC (rev 279)
+++ trunk/packages/kdebindings/debian/changelog 2004-11-29 20:59:58 UTC (rev 280)
@@ -1,3 +1,15 @@
+kdebindings (4:3.3.1-3) unstable; urgency=medium
+
+ * Another upload to fix issues with mipsen builds. Use medium urgency
+ this time.
+
+ * XXX fix #282134?? (note: failure not in an official buildd).
+
+ * Added section to libqt3-java.README.Debian about generating native
+ executables. (Closes: #282483)
+
+ -- Adeodato Simó <asp16@alu.ua.es> Mon, 29 Nov 2004 21:09:48 +0100
+
kdebindings (4:3.3.1-2) unstable; urgency=low
* Don't build java packages on mipsen, since gcj is not available there (and
Modified: trunk/packages/kdebindings/debian/libkde3-java.README.Debian
===================================================================
--- trunk/packages/kdebindings/debian/libkde3-java.README.Debian 2004-11-29 00:15:35 UTC (rev 279)
+++ trunk/packages/kdebindings/debian/libkde3-java.README.Debian 2004-11-29 20:59:58 UTC (rev 280)
@@ -8,5 +8,5 @@
Please read the document /usr/share/doc/libqt3-java/README.Debian.
Mostly everything mentionned there applies here as well, with the
addition that you should also add "/usr/share/java/koala.jar" to your
-CLASSPATH for compiling and using ( in addition to qtjava.jar, and
-others ).
+CLASSPATH for compiling and using (in addition to qtjava.jar, and
+possibly others).
Modified: trunk/packages/kdebindings/debian/libqt3-java.README.Debian
===================================================================
--- trunk/packages/kdebindings/debian/libqt3-java.README.Debian 2004-11-29 00:15:35 UTC (rev 279)
+++ trunk/packages/kdebindings/debian/libqt3-java.README.Debian 2004-11-29 20:59:58 UTC (rev 280)
@@ -15,7 +15,7 @@
Secondly, when compiling and running apps using the Qt Java bindings,
you need to add "/usr/share/java/qtjava.jar" to the CLASSPATH. E.g.
- export CLASSPATH="/usr/share/java/qtjava.jar:/usr/share/java"
+ export CLASSPATH="/usr/share/java/qtjava.jar:/usr/share/java:."
javac Whatever.java
java Whatever
@@ -28,3 +28,37 @@
If you're interested in developing KDE applications using Java, look
at the libkde3-java package.
+
+
+Generating native executables
+-----------------------------
+
+It is also possible to produce native executables with the following gcj
+invocation:
+
+ export CLASSPATH="/usr/share/java/qtjava.jar:/usr/share/java:."
+ gcj -fjni Somefile.java /usr/share/java/qtjava.jar --main=Somefile
+ LD_LIBRARY_PATH=/usr/lib/jni ./a.out
+
+As this will compile the full qtjava.jar into native code, the resulting
+executable will be rather large. If you plan on having several of these
+executables, it may be worth creating a shared qtjava library, like
+this:
+
+ gcj -fjni -shared /usr/share/java/qtjava.jar -o libqtjava-shared.so
+
+And then, after you put libqtjava-shared.so in /usr/lib or similar, you
+can go like:
+
+ gcj -fjni Somefile.java --main=Somefile -lqtjava-shared
+ LD_LIBRARY_PATH=/usr/lib/jni ./a.out
+
+In the future, I'll investigate the possibility of shipping the
+qtjava-shared library in the Debian packages.
+
+Also, in order to avoid the necessity of setting the LD_LIBRARY_PATH
+environment variable, the option -Djava.library.path=/usr/lib/jni can be
+passed to the gcj invocation. There is, however, a bug [1] in gcj that
+prevents this from working, and it's only fixed in gcj-4.0.
+
+ [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18234