Hi again.
I began to write such a complete tutorial to compile and use java bindings
from scratch, but I'm stucked and need your help again.
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*
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.
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*
Question 1: Can we consider to find a better way to solve the jni.h finding
problem ?
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.
Thanks,
Sp4M
2010/12/30 Eric Sunshine <[email protected]>
> On 12/29/2010 8:32 PM, Sp4M wrote:
> > Nice IRC people has suggested me to come there and ask for eric, hehe.
>
> It has been several years since I looked at the Java bindings, and even
> then my involvement primarily was fixing a number of reported problems
> and writing some needed documentation for the manual.
>
> > Basically, i'm searching for the csjava.dll file, but cannot find it
> > anywhere. It is the last barrier for me
>
> Re-reading the instructions in the manual, I see that the csjava.dll
> should end up in the top-level build directory or within
> ${prefix}/share/crystalspace/bindings/java if you installed the built CS.
>
> > Before coding since i successed generating the crystalspace.jar file.
> > (After fixing some issues .. which I can share with anyone interrested)
>
> Best is to submit each problem as a distinct bug report at the issue
> tracker <http://trac.crystalspace3d.org/trac/CS> so that they can be
> discussed and handled on a one-by-one basis. If it is not clear how to
> separate the issues into distinct reports, present the necessary
> information here so that it can be discussed first.
>
> > - Tried to compile with VS Express C++ 2008 with the mk/wktypical.sln
> > solution : Everything is building fine, no error, but no java binding at
> > all.
>
> As far as I recall, we never found anyone to do the actual work of
> figuring out exactly what would be needed by Visual Studio to create
> suitable projects. Consequently, building Java bindings is supported
> only by the CS jam/make build system.
>
> > - Since i saw that it is possible to generate dll files on linux (as
> > mentioned on the configure file, thanks to the '--kill-at' option of
> > ld), I also tried to compile it under linux (but I don't know if CS is
> > really supposed to use this feature or not ?). Anyway, the script don't
> > recognize the option (since it is supposed to work only with i386 archi
> > accordind to the man page of ld).
>
> It is possible to cross-compile for Windows from Linux, but you would
> need to follow specific instructions to do so. At any rate, if I recall
> correctly, building of Java bindings under MSYS/MinGW on Windows did
> work correctly (at the time). If Windows is your primary platform, then
> best would be to use MSYS/MinGW and attempt to resolve any current build
> issues.
>
> > If someone is interrested about the question, there is more technical
> > details about my problem on the forum :
> > http://www.crystalspace3d.org/forum/index.php/topic,2047.0.html
>
> If the documentation at
> <http://crystalspace3d.org/docs/online/manual/Java-Bindings.html> is
> still valid, try following its instructions and report your results. Be
> sure that you have MSYS/MinGW, Java SDK, Swig, and Ant installed.
>
> -- 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
>
------------------------------------------------------------------------------
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