[Gdal-dev] Compiling gdal 1.2.0 with static-proj4
Frank Warmerdam
warmerdam at pobox.com
Tue May 18 13:15:56 EDT 2004
Nicol Hermann wrote:
> Hi List,
>
> i trying to compile gdal 1.2.0 with the following configure statement on
> my Debian 3.0r2 box:
> ./configure --with-static-proj4=/usr/local --without-ld-shared
>
> gcc/g++ --version is 2.95.4
>
> During the make process i get the following error:
>
> ogrct.cpp:210: warning: garbage at end of `#ifdef' argument
> ogrct.cpp: In function `int LoadProjLibrary()':
> ogrct.cpp:211: `pj_get_def' undeclared (first use this function)
> ogrct.cpp:211: (Each undeclared identifier is reported only once
> ogrct.cpp:211: for each function it appears in.)
> make[1]: *** [ogrct.o] Fehler 1
> make[1]: Leaving directory `/tmp/gdal/gdal-1.2.0/ogr'
> make: *** [ogr-target] Fehler 2
>
> Any clues how to fix this?
> The same error appears with the CVS Version.
Nicol,
What version of PROJ.4 do you have installed? The code tries to only
use the pj_get_def function if you have PROJ.4 4.4.6 or later available
with the following check:
#ifdef PJ_VERSION >= 446
pfn_pj_get_def = pj_get_def;
#endif
However, possibly my checking is wrong in some way. In any event you can
just comment out the offending line. The pj_get_def() function is just
used for some esoteric purposes, and in normal operation is not necessary.
Alternatively, install a more up-to-date version of PROJ.4.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list