Compiling SWT+SwingWT

Robin Rawson-Tetley enquiries@sheltermanager.homeip.net
Tue Apr 20 12:45:00 GMT 2004


Hi list,
I was hoping someone could help me - I'm trying to put together a shell
script to compile SWT/GTK2+SwingWT on Linux (I get mails every day about
this) and I'm having some trouble.
I seem to be able to compile SWT and SwingWT to two separate shared
libraries ok (swt.so and swingwt.so), however as soon as I link a
program against them, I get a whole raft of "undefined reference to
org::eclipse..." errors for classes in the SWT library.
The shell script is attached, it first compiles SWT from java source,
then SwingWT from it's JAR and then attempts a small, single class
executable, which it compiles to an object and then links them all
together (this is where everything goes tits up). I'm sure I must be
doing something very obviously stupid, but I've tried other approaches
(compiling files individually to .o and then linking) and ultimately end
up with the same problem. I'm using GCC 3.3.3 on Debian unstable.
I appreciate this is a bit much, but if anyone wants to try this out 
first hand, you can do an anonymous checkout of the SwingWT source tree 
at http://sf.net/projects/swingwt and run this script from the bin
directory.
Thanks in advance,
Rob
-- 
=====================================================
Robin Rawson-Tetley
Animal Shelter Manager (http://sheltermanager.sf.net)
SwingWT (http://swingwt.sf.net)
I prefer encrypted email.
Download my public key at: http://rawsontetley.ath.cx/sfpk.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_native_linux_gtk2.sh
Type: application/x-sh
Size: 1863 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040420/93e97417/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040420/93e97417/attachment.sig>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /