[Java-gnome-developer] undefined reference to `org::gnu::gtk::Entry::class$'
Brought to you by:
afcowie
From: Jean-Christian de R. <jc...@ec...> - 2006-11-24 14:28:50
|
Hello, I begin to learn gnome-java by the traditional Hello World like the one found into the documentation. The small code is in attachement and I can run it fine with the following command on a fresh install of Ubuntu edgy: jcdr@citron:~/workspace/Simple$ LD_PRELOAD=/usr/lib/jni/libglibjni-0.4.so java -cp bin/:/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:/usr/share/java/glade2.12.jar ch.eclis.test.Simple Now I try to compile the application to get a native ELF executable but after several test, I still can't reach this goal. The most advanced result I have is with the following command: jcdr@citron:~/workspace/Simple$ LANG=US gcj-4.1 --classpath=/usr/share/java/gtk2.10.jar:/usr/share/java/glib0.4.jar:/usr/share/java/glade2.12.jar -L /usr/lib/jni -lglibjni-0.4 -lgtkjni-2.10 -lgladejni-2.12 /usr/lib/gcj/gtk2.10.jar.so src/ch/eclis/test/Simple.java /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' /tmp/ccxGaPRd.o: In function `ch::eclis::test::Simple::Simple()': Simple.java:(.text+0x8b): undefined reference to `org::gnu::glade::LibGlade::class$' Simple.java:(.text+0xaa): undefined reference to `org::gnu::glade::LibGlade::LibGlade(java::lang::String*, java::lang::Object*)' Simple.java:(.text+0xd6): undefined reference to `org::gnu::gtk::Entry::class$' /tmp/ccxGaPRd.o:(.data+0x34): undefined reference to `org::gnu::gtk::Entry::class$' collect2: ld returned 1 exit status Using -fjni option give the same result. I have found the symbol _ZN3org3gnu3gtk5Entry7class$$E in the /usr/lib/gcj/gtk2.10.jar.so, are the one supposed to match the org::gnu::gtk::Entry::class$ ? As for the glade symbols, I didn't find a glade*.jar.so or something like this. >From what package it is supposed to come with ? Thanks in advance to any help, |