Project

General

Profile

libs4cdo-0.0.10 missing include file in proj-4.8.0/src

Added by Didier Monselesan over 12 years ago

Possibly missing include file in libs4cdo-0.0.10 in proj-4.8.0/src

jniproj.c:52:26: error: org_proj4_PJ.h: No such file or directory
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DPROJ_LIB=\"/usr/local/src/cdo/libs4cdo-0.0.10/build/share/proj\" -DMUTEX_stub -g -O2 -MT pj_mutex.lo -MD -MP -MF .deps/pj_mutex.Tpo -c pj_mutex.c -fPIC -DPIC -o pj_mutex.o >/dev/null 2>&1
make5: * [jniproj.lo] Error 1
make5:
Waiting for unfinished jobs....
mv -f .deps/pj_mutex.Tpo .deps/pj_mutex.Plo
make5: Leaving directory `/usr/local/src/cdo/libs4cdo-0.0.10/proj-4.8.0/src'
make4:
[all] Error 2
make4: Leaving directory `/usr/local/src/cdo/libs4cdo-0.0.10/proj-4.8.0/src'
make3:
[all-recursive] Error 1
make3: Leaving directory `/usr/local/src/cdo/libs4cdo-0.0.10/proj-4.8.0'
make2:
[proj-4.8.0] Error 2
make2: Leaving directory `/usr/local/src/cdo/libs4cdo-0.0.10'
make1:
[all] Error 2
make1: Leaving directory `/usr/local/src/cdo/libs4cdo-0.0.10'
make: *
* [libs4cdo] Error 2


Replies (8)

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Ralf Mueller over 12 years ago

I cannot reproduce this error. The file org_proj4_PJ.h is not in proj-4.8.0 and not in proj-4.7.0. Did you call

make libs4cdo

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Didier Monselesan over 12 years ago

Yes, I did a 'sudo make libs4cdo' to test the build (in /usr/local/src/cdo/libs4cdo-0.0.10). It works fine for 'lins4cdo-0.0.9', but not for 'libs4cdo-0.0.10'). My system is a Dell precision T7500 running Suse Enterprise Desktop 11.1 (Kernel Linux 2.6.32.54-0.3-default x86_64, CPU Xeons Intel(R) Xeon(R) CPU X5650 @ 2.67GHz, if it is of any help. I have not tried on a different system yet. Cheers, Didier

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Didier Monselesan over 12 years ago

A grep in /proj-4.8.0/src returns

jniproj.c:#include "org_proj4_PJ.h" ?

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Didier Monselesan over 12 years ago

However, a grep in /jniwrap returns

build.xml:

Not quite sure what to make out of that.

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Ralf Mueller over 12 years ago

I use the same configure call, but a gcc-4.6.2.

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Ralf Mueller over 12 years ago

You may download it from here

You may try --without-jni instead of --disable-jni. It seems, that this has changed, although the file jniproj.c is unconditionally a part of the source of libproj.

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Didier Monselesan over 12 years ago

Ralf,

Bingo, it works with changing '--disbale-jni' to '--without-jni' in 'cdo.mk'. I have also noticed that 'cdo.mk' need to be changed for netcdf-4.2 has the Unidata has changed the configuration options in the netcdf-4.2 distro. All lot of these are now defaults and includes and extra libs have to be passed through the configure environment variables. For example for netcdf-4.2

sudo ./configure --prefix=/usr/local/src/cdo/libs4cdo-0.0.10/build --enable-shared --enable-netcdf-4 --with-pic CPPFLAGS=-I/usr/local/src/cdo/libs4cdo-0.0.10/build/include LDFLAGS=-L/usr/local/src/cdo/libs4cdo-0.0.10/build/lib
sudo make

Will be successful. I verified it with 'sudo make check'.

Cheers, Didier

RE: libs4cdo-0.0.10 missing include file in proj-4.8.0/src - Added by Ralf Mueller over 12 years ago

Thanks for the hint! I'll check netcdf-4.2.

regards
ralf

    (1-8/8)