classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: State of AWT


From: Mark Wielaard
Subject: Re: State of AWT
Date: 03 Feb 2002 11:09:01 +0100

Hi,

On Sun, 2002-02-03 at 03:25, Tom Tromey wrote:
> Mark> /tmp$ cp -r ~/src/classpath/gnu/java/awt gtkpeers/gnu/java/
> Mark> /tmp$ cd gtkpeers
> Mark> /tmp$ for i in gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o
> 
> You also need gnu.java.awt.image.
> Without that, I think the .so will have unresolved symbols and won't
> link at runtime.

Yes! That was it. Thanks. I can now see a window with buttons on my
screen and lots of stacktraces. I am so excited :)

For people trying to do this themselves. You will have to include all
java files from gnu/java/awt/image and gnu/java/awt/peer/gtk in the
shared library, but not any more.

$ for i in gnu/java/awt/image/*.java gnu/java/awt/peer/gtk/*.java; do
gcj -fPIC -g -fjni -c -o `basename $i .java`.o $i; done
$ gcc -shared -o lib-gnu-java-awt.so *.o

Cheers,

Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]