[Gdal-dev] gdal config icluding xerces

Frank Warmerdam warmerdam at pobox.com
Tue Jul 13 11:04:05 EDT 2004


Daniel Isenegger wrote:
> Hi
> after some problems with installing Xerces in default paths, i think i 
> overcome (with the patient help of Frank) this problems (now it seems 
> that gdal finds the Xerces libs and includes), at least i got a new 
> error message (:-)
> 
> checking for Xerces C++... requested, but compile or link fails!
> 
> ./configure --with-grass=/usr/local/grass-5.7.0 
> --with-pg=/usr/local/pgsql/bin/pg_config --with-xerces 
> --with-odbc=/usr/local/lib --with-static-proj4=/usr/lib/libproj.so | tee 
> configure_disen.log
> 
> 
> g++ -I/usr/local/include/xercesc -o conftest conftest.cpp 
> -L/usr/local/lib -lxerces-c -L/usr/local/grass-5.7.0 
> -L/usr/local/grass-5.7.0/lib -lgrass5 -lz -lm -ldl
> 
> /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: 
> cannot find -lgrass5
> collect2: ld returned 1 exit status
> 
> what i don't understand here:
> is still Xerces causing the problem or is it grass
> 
> for info:
> grass57 installed in /usr/local/grass-5.7.0 (as indicated in 
> config-statement)

Daniel,

GRASS support currently only works with libgrass, not by pointing to
the regular GRASS tree.  So either skip GRASS (--without-grass) or
get libgrass and configure accordingly.  Note that if you want to use GDAL
with r.in.gdal and other GRASS code then GDAL should be built *without*
GRASS support builtin to avoid library conflicts.

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