* qtjava and GCJ update
@ 2002-04-02 21:08 Bryce McKinlay
2002-04-02 21:17 ` Bryce McKinlay
0 siblings, 1 reply; 2+ messages in thread
From: Bryce McKinlay @ 2002-04-02 21:08 UTC (permalink / raw)
To: java, kde-java
I have committed a fix for GCJ's java.util.IdentityHashMap that was
causing JNI crashes with qtjava. The "ScribbleWindow" demo from
kdebindings-2.2.2 should be running fine with GCJ 3.1 now. I have not
been able to reproduce Richard Dale's problem which seems like a
different issue.
Here's what I did to get it running:
1. Install qt-devel, kdelibs-devel, and kdelibs-sound-devel from Redhat 7.2.
2. Download kdebindings source from
ftp://ftp.kde.org/pub/kde/stable/2.2.2/src/kdebindings-2.2.2.tar.bz2
3. unpack and ./configure --with-qt-dir=/usr/lib/qt-2.3.1
4. cd qtjava; make
5. cd javalib
6. Compile qtjava java source into a shared library:
gcj -classpath . org/kde/qt/*.java -shared --jni -o libqtgcj.so
(the --jni option tells gcj that "native" methods will be implemented
using JNI, this is important. You can also add -O2 to get a smaller
faster library, but it will take longer to build)
7. copy the qtjava JNI library into the current directory so it will be
easier to get at
cp javalib/qtjava/.libs/*.so .
8. compile ScribbleWindow
gcj test/ScribbleWindow.java --main=ScribbleWindow -o scribble -L. -lqtgcj
9. set runtime library path
export LD_LIBRARY_PATH=.
10. run it
./scribble
11. scribble!!
regards
Bryce.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: qtjava and GCJ update
2002-04-02 21:08 qtjava and GCJ update Bryce McKinlay
@ 2002-04-02 21:17 ` Bryce McKinlay
0 siblings, 0 replies; 2+ messages in thread
From: Bryce McKinlay @ 2002-04-02 21:17 UTC (permalink / raw)
To: java; +Cc: kde-java
Bryce McKinlay wrote:
> Here's what I did to get it running:
>
> 1. Install qt-devel, kdelibs-devel, and kdelibs-sound-devel from
> Redhat 7.2.
>
> 2. Download kdebindings source from
> ftp://ftp.kde.org/pub/kde/stable/2.2.2/src/kdebindings-2.2.2.tar.bz2
>
> 3. unpack and ./configure --with-qt-dir=/usr/lib/qt-2.3.1
>
> 4. cd qtjava; make
I should add that did the qtjava configure/make with the Redhat 7.2
compiler rather than GCC 3.1, since code produced by GCC 3.x will not
link with the old Qt lib due to the C++ ABI change. The JNI lib built by
the Redhat GCC can be loaded fine by a GCJ 3.1 binary, however.
regards
Bryce.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-03 5:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02 21:08 qtjava and GCJ update Bryce McKinlay
2002-04-02 21:17 ` Bryce McKinlay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).