Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Compiling of GCJ and SWT under MacOS X

cyberdeth@xxxxxxxxxx (cyberdeth@xxxxxxxxxx):

> This is what I get using gcj 3.4.2 downloaded from here
> http://hpc.sourceforge.net/ compiling this code.
> 
> [iBook:~/Development/Swt/src] cyberdet% gcj -fjni Hello.java -o Hello
> --main=Hello -lc
> java/lang/Object.java:0: fatal error: the `java.lang.Object' that was
> found in `/System/Library/Frameworks/

  You'll have to ask a gcj developer about this one.  Sounds like your
gcj installation is bad.  Nothing to do with SWT.

> [iBook:~/Development/Swt/src] cyberdet% gcj -fjni Hello.java -o Hello
> --main=Hello --classpath=$HOME/Development/swt-classes/swt.jar -lc
> /usr/bin/ld: Undefined symbols:
> org::eclipse::swt::layout::RowLayout::class$

  gcj can't find the .class files for RowLayout.  Did you check if they
are in swt.jar?  Sounds like you just need to get your classpath
correct.

> [iBook:~/Development/Swt/src] cyberdet% gcj -fjni Hello.java -o Hello
> --main=Hello --classpath=$HOME/Development/swt-classes/swt.jar -lc
> -L$HOME/Development/swt-classes -lswt-carbon-3063
> /usr/bin/ld: can't locate file for: -lswt-carbon-3063

  Don't add -lswt-carbon-3063.  You don't need it.  This is not the
problem.

> [iBook:~/Development/Swt/src] cyberdet% gcj -fjni Hello.java -o Hello
> --main=Hello --classpath=$HOME/Development/ swt-classes/swt.jar -lc
> $HOME/Development/swt-classes/libswt-carbon-3063.jnilib

  Again, you don't need it.

  -Billy



Back to the top