[Proj] Errors compiling proj4 on linux

Martin Desruisseaux martin.desruisseaux at geomatys.fr
Thu May 31 04:42:29 PDT 2012


Hello Calogero

I though that JNI (and consequently Java) was an optional dependency 
compiled only if 'configure' has been run with the --with-jni flag... 
Which commands did you run exactly?

Looking at the SVN log, it seems that the fix applied on trunk on March 
26th has not been propagated to the 4.8 branch. Do you have a chance to 
try compiling the trunk?

     svn checkout http://svn.osgeo.org/metacrs/proj/trunk/proj

I would like to know if it work for you.

     Martin


Le 31/05/12 13:02, Calogero Mauceri a écrit :
> Hi all,
>
> The compilation of the latest proj library (4.8.0) fails on my linux
> machine, after using configure and make commands.
> The compilations stops reporting
>
> jniproj.c:52:26: org_proj4_PJ.h: No such file or directory
> ...
>
> I noticed there is a ticket opened for this problem
> http://trac.osgeo.org/proj/ticket/153 but it does not seem to have been
> fixed.
> Anyone knows how to deal with this problem? Do I need to have java
> installed on my machine? Is that really needed by proj lib or there is a
> way to disable it?
>
> I also tried to compile the trunk version of proj4. The missing file is
> now found but there are a banch of other JAVA related errors like
>
> jniproj.c: In function `Java_org_proj4_PJ_getSemiMajorAxis':
> jniproj.c:221: error: `NAN' undeclared (first use in this function)
> ....
>
>
> Thanks,
>       Calogero




More information about the Proj mailing list