[Java-gnome-developer] java gnome vs. pkg-config
Brought to you by:
afcowie
From: Dalibor T. <ro...@ka...> - 2003-12-16 14:59:39
|
Hi all, due to Mark Wielaard calling out for people to test java-gnome with their VMs, I've decided to try out java-gnome from CVS with kaffe from CVS. Unfortunately, I didn't get very far, but I managed to spot some problems ;) 1) The README file refers the user to an INSTALL file. There is no INSTALL file in the java-gnome CVS top level directory. But there is one in common/INSTALL. I could submit a patch, if you need one ;) 2) There is no configure script, and it doesn't seem to be documented how to generate it. I've came up with the grand idea of running genConfigure.in, genMakefile.in and autoreconf, but that should be documented in the INSTALL file ;) Again, I could submit a patch, if necessary. 3) Finally, my configure run breaks due to bash-2.05a$ ./configure --with-kaffe --with-kaffe-prefix=/tmp/topic/current-jit3/ checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for a BSD-compatible install... /usr/bin/install -c Add /tmp/topic/current-jit3//bin to path and check again. checking for kaffe... /tmp/topic/current-jit3//bin/kaffe checking for Kaffe - Java Version >= 1.1... yes checking for javadoc... /tmp/topic/current-jit3//bin/javadoc checking for javac... /tmp/topic/current-jit3//bin/javac checking for kaffe... /tmp/topic/current-jit3//bin/kaffe checking for jar... /tmp/topic/current-jit3//bin/jar checking for main in -libs... no checking for pkg-config... /usr/bin/pkg-config checking for gtk+-2.0 >= 2.2... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found configure: error: Library requirements (gtk+-2.0 >= 2.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them. I have no idea what `gtk+-2.0.pc' is or where I can find it. Any pointers or ideas where to search for the file? 4) The FAQ says that you're looking for someone who's been using kaffe to compile things to help out. Well, here I am ;) I've discussed the build failures Mark had with him on IRC, and I think currently, the problem when using kaffe's java compiler is that it doesn't know about the -sourcepath option. A way to fix that would be to avoid using -sourcepath altogether, and simply cd into the directory. Another way would be to (LN_S) the source files into a build dir, and compile from there. All that being said, I look forward to run java-gnome apps on kaffe, since I think gnome & java would mix well. All the best wishes for getting into the official GNOME binding set. cheers, dalibor topic |