[Proj] Mingw JNI build issue
mchristyuk at hotmail.com
Thu Feb 27 05:34:42 EST 2014
It does build for 64 bit as that is what I have done (using it in a 64 bit application).
However I did my build using Java 7 rather than the Java 6 I see you're using.
Also you need to make sure you launched the 64bit VC++ command line tools windows.
Sorry I can't be more exact... it was a while ago and C++ is not my strong point!
> Date: Thu, 27 Feb 2014 02:29:30 -0800
> From: mike.reynolds at aug-tech.co.uk
> To: proj at lists.maptools.org
> Subject: Re: [Proj] Mingw JNI build issue
> Hi Mark - Thanks for the files.
> I've got a bit further using your files, changing the include path to point
> to my Java_Home. I also see where you added in jni=jniproj.obj to get it to
> When doing the build now, I have another issue, which I'm pretty sure is
> related to 64bit vs 32bit;
> jniproj.c(223) : error C2275: 'jclass' : illegal use of this type as an
> C:\Program Files\Java\jdk1.6.0_22\include\jni.h(84) : see
> declaration of 'jclass'
> jniproj.c(223) : error C2146: syntax error : missing ';' before identifier
> I believe I'm right in saying Proj only supports a 32bit build. I'm using
> 32bit nmake to perform the build, but the only jni.h I have is in
> "C:\Program Files\Java\jdk1.6.0_22\include\", therefore I'm guessing 64bit
> (although jni_md.h is in \Win32\ )
> Do you know if its enough to get a 32bit version of jni.h and include that
> instead? Which one(s) are you using?
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mingw-JNI-build-issue-tp5093816p5106316.html
> Sent from the PROJ.4 mailing list archive at Nabble.com.
> Proj mailing list
> Proj at lists.maptools.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Proj