[Proj] Mingw JNI build issue

mchristyuk mchristyuk at hotmail.com
Wed Dec 11 15:14:00 EST 2013


Hi all,

I've successfully built Proj.4 with JNI support on my OSX machine and am
attempting to do the same under Mingw64 and MSYS on Windows 7 64bit. I can
build the normal DLL ok (configure, make, make install). However as soon as
I enable the JNI options I get some errors, which I kind of understand
(excuse me I'm a Java programmer at heart!) but am a little lost in
resolving.

The error is at the end of "Make" and is this:

/bin/sh ../libtool --tag=CC   --mode=link x86_64-w64-mingw32-gcc 
-I/java/include/win32/   -o proj.exe proj.o gen_cheb.o p_series.o libproj.la
-lm libtool: link: x86_64-w64-mingw32-gcc -I/java/include/win32/ -o
.libs/proj.exe proj.o gen_cheb.o p_series.o  ./.libs/libproj.dll.a
-L/usr/local/lib
proj.o:proj.c:(.text+0xf0): undefined reference to `emess_dat'
proj.o:proj.c:(.text+0xf9): undefined reference to `emess_dat'
proj.o:proj.c:(.text+0x3b7): undefined reference to `pj_factors'
proj.o:proj.c:(.text+0x437): undefined reference to `pj_factors'
proj.o:proj.c:(.text+0x54d): undefined reference to `rtodms'

and so on.. there's a number of "undefined reference" complaints... 

As it compiles fine without the JNI support there's a clue here somewhere,
but I'm stumped if I can get to the bottom of it!

My configure command is:

CFLAGS=-I/java/include/win32 ./configure --with-jni=/java/include/
--host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32

Configure correctly finds the JNI headers and enables everything so far as I
can tell..

This is happens with the latest SVN checkout and the zip 4.8.0 download.

Help? 

Many Thanks

Mark



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mingw-JNI-build-issue-tp5093816.html
Sent from the PROJ.4 mailing list archive at Nabble.com.


More information about the Proj mailing list