From: Bruno P. <br...@po...> - 2014-01-07 20:28:22
|
On Tue 07-Jan-2014 at 08:32 +0100, Kornel Benko wrote: >Am Montag, 6. Januar 2014 um 22:52:35, schrieb Bruno Postle <br...@po...> >> On Mon 23-Dec-2013 at 14:34 +0100, Kornel Benko wrote: >> >+ find_package(Java REQUIRED) >> >+ find_package(JNI REQUIRED) >> On fedora both these tests fail to find either libgcj or openjdk and >> the build fails, but when I remove them gcc finds the gcj java >> headers anyway and the build is fine. > >Could it be because of _old_ CMakeCache.txt? >In other words, does it work from now on permanently? This is with a fresh checkout, on fedora the java headers are in a very obscure location, the cmake macros will never find them: /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/jni.h ..but this works fine (and the env is clean): echo '#include <jni.h>' > foo.h gcc foo.h I assume this is standard behaviour with gcc-gcj, are you trying to build with openjdk? -- Bruno |