Re: [Java-gnome-developer] question for native build
Brought to you by:
afcowie
From: Nicholas R. <ni...@mn...> - 2005-03-24 08:17:52
|
sorry, i responded to this mail via a different thread. sorry for the confusion. here's the response again (in the correct thread :-). Hi Olivier, I compared the Makefile you sent in the previous mail with one that i have used in the past and i found a couple of differences. Here's the "native" target from my Makefile: native: ${GCJ} --classpath=.:${INCLUDES} -L${JG_LIBDIR} -lgcj ${LIBS} --main=${MAIN} -o ${TARGET} ${FILES} I have an extra -L definition as well as the -lgcj. I don't actually use the native compile anymore, but if i remember correctly, the -lgcj part was important. My java-gnome libs are in a non-standard location so i think that was why i had the extra -L defined. hope this helps, nick On Fri, 2005-03-18 at 13:38 +0100, Olivier Evalet wrote: > Hi All, > First, thanks a lot for your great work!!! > > I'm working to make a local linux distribution to help my friends to > understand what it mean freedom and sharing. Two weeks ago, I decided to > build tools with java-gnome and gcj. It is really exciting to see java & > java-gnome working without any jre!!! > > I began to build the gui installer and his partedjava library helper. I > also discovered eclipse that I directly adopted. I learned on your > makefile.am and config.ac and adepted the gtkjava to my partedjava. Now > I can build with eclipse and distribute with configure/make. > > Here is my question. The gui installer depend on libpartedjava and > lpartedjava depend on the jni libpartedjni.so. When I use java and > eclipse all is working perfectly. But when I try to build natively, I > get an link error only for jni methodes: > > ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::create_devices(JArray<org::gnu::parted::Device*>*)' > ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::init_device()' > ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::get_partitions(org::gnu::parted::Device*)' > ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::init_parted()' > > and > %>objdump -T /usr/lib/libpartedjava.so |grep init_parted > %>00000000 D *UND* 00000000 _ZN3org3gnu6parted6Device11init_partedEv > > I think that I have a bad link option but I don't know where, you will > find on attach the make.am for the partedjava & partedjni, and the > makefile for gui Installer. > > > Have you any idea? > > > Cheers, > Olivier > |