[Java-gnome-developer] Compiling the examples codes
Brought to you by:
afcowie
From: Khiraly <khi...@gm...> - 2005-01-10 22:05:21
|
Hi! I have downloaded the latest source code: ftp://ftp.gnome.org/pub/GNOME/sources/libgnome-java/2.9/libgnome-java-2.9.3.tar.bz2 In the doc/examples directory I wanted to compile the: simplemenu application. (the runExample.sh does not seem to work for me, I dont know pkg-config) I used the following command to compile(native binary): gcj-3.4 -classpath /usr/share/java/gtk2.4.jar:/usr/share/java/gnome2.8.jar -lgtkjar2.4 -lgnomejar2.8 --main=SimpleMenu SimpleMenu.java /usr/bin/ld: cannot find -lgtkjar2.4 collect2: ld returned 1 exit status However on my system (debian SID), I have installed the following packages: java-common libgnome0-java libgnome2-java libgtk2-java gcj-3.4 libgcj5 libgcj5-awt libgcj5-common libgcj5-dev I have the /usr/share/java/gtk2.4.jar file. I have added the '/usr/share/java/' directory to my /etc/ld.so.conf file, and executed ldconfig as root. (ldconfig -v does not show libjava or libgtk-java). Question: How can I set correctly my /usr/bin/ld file? Best regards, Khiraly |