Re: [Java-gnome-developer] Compile natively and static in windows
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-05-19 13:25:38
|
I think you should inform to gcj where the gtk lib (not only the jar) is, but i'm not sure... i suggest you to ask that on irc.gimp.net, at #gcj, or #classpath; where the gcj hackers hang around. Cheers, J.V. --- llanero <ll...@gm...> escreveu: > Hi all, > > does anyone know how to compile static java-gtk? A simple java app > with no java-gtk code compiles great and produces a 2.0MB (stripped) > static exe. But I can't get it to compile static with java-gtk. > > $ gcj -static -classpath gtk2.6.jar --main=Simple Simple.java > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0x8): In function > `ZN6Simple4mainEP6JArrayIPN4java4lang6StringEE': > C:/msys/1.0/home/usuari/Simple.java:20: undefined reference to > `org::gnu::gtk::WindowType::class$' > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0x7d):C:/msys/1.0/home/usuari/Simple.java:22: > undefined reference to > `org::gnu::gtk::Gtk::init(JArray<java::lang::String*>*)' > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0x8c):C:/msys/1.0/home/usuari/Simple.java:23: > undefined reference to `org::gnu::gtk::Window::class$' > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xa1):C:/msys/1.0/home/usuari/Simple.java:23: > undefined reference to `org::gnu::gtk::WindowType::class$' > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xaf):C:/msys/1.0/home/usuari/Simple.java:23: > undefined reference to `org::gnu::gtk::WindowType::TOPLEVEL' > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xbe):C:/msys/1.0/home/usuari/Simple.java:23: > undefined reference to > `org::gnu::gtk::Window::Window(org::gnu::gtk::WindowType*)' > C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xf4):C:/msys/1.0/home/usuari/Simple.java:25: > undefined reference to `org::gnu::gtk::Gtk::main()' > collect2: ld returned 1 exit status > > -- > Manel Clos > ll...@gm... > http://www.webpersonal.net/llanero/ __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ |