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