[Gdal-dev] gdal config icluding xerces

Frank Warmerdam warmerdam at pobox.com
Fri Jul 9 10:48:59 EDT 2004


Daniel Isenegger wrote:
> Hi
> 
> i have installed grass57 on suse9.1 and want to use gdal for the 
> grass-commands v.in.ogr and v.out.ogr. When applying v.out.ogr xerces is 
> needed by gdal.
> 
> when compiling gdal to use xerces i get the following errors (2 
> different tries in the following):
> 
> - when using xerces 2.1.0 (built from source):
> 
> ./configure --with-grass=/usr/local/grass-5.7.0 
> --with-pg=/usr/local/pgsql/bin/pg_config --with-xerces 
> --with-xerces-inc=/downloads/xerces/xerces-c-src2_1_0/include 
> --with-xerces-lib="-L/downloads/xerces/xerces-c-src2_1_0/lib -lpthread" 
> --with-odbc=/usr/local/lib --with-static-proj4=/usr/lib/libproj.so | tee 
> configure_disen.log

Daniel,

I tried this out and found I had to do things a bit differently:

   ./configure --with-xerces --with-xerces-inc=/u/pkg/xerces-c-src2_2_0/include/xercesc 
--with-xerces-lib="-L/u/pkg/xerces-c-src2_2_0/lib -lxerces-c -lpthread"

Note:
  o the include directory is <base>/include/xercesc, not just <base>/include.
  o The lib directive needs to include the library (-lxerces-c) as well as the
    path and pthread.

With this it worked for me.  In general though I find it much easier to just
"make install" xerces and use --with-xerces alone to find the library.

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