[Proj] Errors compiling proj4 on linux
Calogero Mauceri
mauceri at actgate.com
Thu May 31 05:50:10 PDT 2012
Hi Martin,
The problem happens just running ./configure without passing any option.
Here is a snapshot of the configure log
...
checking for ANSI C header files... (cached) yes
checking jni.h usability... yes
checking jni.h presence... yes
checking for jni.h... yes
checking whether to enable Java/JNI support... enabled
...
so it seems that it automatically enabled Java/JNI even if I do not pass
--with-jni option.
If I try to compile the proj from svn trunk, In the configure output JNI
seems to be still enabled
...
checking for ANSI C header files... (cached) yes
checking jni.h usability... yes
checking jni.h presence... yes
checking for jni.h... yes
checking whether to enable Java/JNI support... enabled
...
but the compilation gives me some errors related to JAVA like:
...
jniproj.c: In function `Java_org_proj4_PJ_getSemiMajorAxis':
jniproj.c:221: error: `NAN' undeclared (first use in this function)
jniproj.c: In function `Java_org_proj4_PJ_getSemiMinorAxis':
jniproj.c:237: error: `NAN' undeclared (first use in this function)
....
Thanks,
Calogero.
Il 31/05/2012 13.42, Martin Desruisseaux ha scritto:
> 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
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
More information about the Proj
mailing list