On 12/30/2010 9:34 PM, Sp4M wrote: > I followed your suggestions and installed MSYS/MinGW. > Quite everything looks fine when I ./configure, but the java SDK usability. > *Problem 1)* > Extract of the config.log > /configure:14689: checking if Java SDK is usable/ > /configure:14802: gcc -o conftest.exe > -I/F/PROG/CrystalSpaceLibs/mingw/include > -I/F/PROG/CrystalSpaceLibs/common/include > -I/F/PROG/CrystalSpaceLibs/mingw/include > -I/F/PROG/CrystalSpaceLibs/common/include > -L/F/PROG/CrystalSpaceLibs/mingw-gcc-4.5/lib > -L/F/PROG/CrystalSpaceLibs/mingw/lib > -L/F/PROG/CrystalSpaceLibs/common/lib conftest.c >&5/ > /conftest.c:30:19: fatal error: jni.h: No such file or directory/
This extract is probably too short. You need to look at everything between the "checking if..." message and the final "no" message. There should be a series of "gcc" attempts (five or more) before the final "no". Some or all of them will be failures (depending upon platform and setup). > I tried to add '/F:\PROG\Java\jdk1.4\jdk\include/' and > '/F:\PROG\Java\jdk1.4\jdk\include\win32/' to the PATH: same problem. To PATH, you should add the path containing java.exe. Alternately, as I recall, you can set JAVAHOME to the root of the Java installation. In either case, the configure check will query java.exe for the location of the Java headers and libraries. > I tried to by-pass the problem by calling: configure "CPPFLAGS=$CPPFLAGS > -I/F/PROG/Java/jdk1.4/jdk/include -I/F/PROG/Java/jdk1.4/jdk/include/win32" > Here it seems to find jni.h correctly, but ... > *Problem 2)* > Extract of the config.log > /configure:14689: checking if Java SDK is usable/ > /configure:14802: gcc -o conftest.exe > -I/F/PROG/CrystalSpaceLibs/mingw/include > -I/F/PROG/CrystalSpaceLibs/common/include > -I/f/PROG/Java/jdk1.4/jdk/include/ > -I/f/PROG/Java/jdk1.4/jdk/include/win32 > -I/F/PROG/CrystalSpaceLibs/mingw/include > -I/F/PROG/CrystalSpaceLibs/common/include > -L/F/PROG/CrystalSpaceLibs/mingw-gcc-4.5/lib > -L/F/PROG/CrystalSpaceLibs/mingw/lib > -L/F/PROG/CrystalSpaceLibs/common/lib conftest.c >&5/ > /C:\Users\Sp4M\AppData\Local\Temp\ccKB2qIc.o:conftest.c:(.text+0x2e): > undefined > reference to `_imp__jni_getcreatedjava...@12'/ > /collect2: ld returned 1 exit status/ Are the paths in the -L directives correct? Also, in the above output, I don't see it actually linking against the Java libraries. > Question 1: Can we consider to find a better way to solve the jni.h > finding problem ? See above about making sure that java.exe is found. It should be automatic. If that isn't working, then we need to determine why. > Question 2: Do you have an idea about this second error ? I read some > stuff about ld version, or jvm.dll, tried many things, but nothing worked. We will need to determine why it is not linking with the library. -- ES ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[email protected]?subject=unsubscribe
