[Mapserver-users] Building gdal with Xerces

Paul Spencer spencer at dmsolutions.ca
Thu May 15 08:40:33 EDT 2003


You need xerces 1.6.0 unless Frank has updated it recently.

Cheers,

Paul

Benjamin Thelen (CCGIS) wrote:
> Hi,
> 
> I suppose, this is a question especially to Frank! Sorry to bother you
> again!
> 
> Basic system config concerning this thread:
> freebsd 4.7
> gdal 1.1.8
> mapserver 3.6.5
> 
> 
> We tried the following:
> 
> benjamin at qwertzuiop> ogrinfo rat_wald.gml
> ERROR 1: Unable to create Xerces C++ based GML reader, Xerces support
> not configured into GDAL/OGR.
> ERROR 1: File rat_wald.gml appears to be GML but the GML reader can't
> be instantiated, likely because Xerces support wasn't
> configured in.
> FAILURE:
> Unable to open datasource `rat_wald.gml' with the following drivers.
>   -> ESRI Shapefile
>   -> UK .NTF
>   -> SDTS
>   -> TIGER
>   -> IHO S-57 (ENC)
>   -> MapInfo File
>   -> DGN
>   -> GML
>   -> AVCBin
>   -> PostgreSQL
> 
> 
> 
> I now have two questions:
> 
> 1. I couldn't find out, which version of Xerces I should install. That seems
> to be quite important, as there have been some important changes from 1.7.0
> to 2.1.0_1 ( I know 2.1.0 is not the latest, but it is the latest within the
> FreeBSD Ports Collection :-) Sorry to blame you with that bloody Ports
> Collection again :-)).
> 
> 2. Then I found out that gdal (1.1.8) has to be compiled with Xerces. Well,
> there are three options I have to specify:
> 
> --with-xerces
> --with-xerces-in=dir
> --with-xerces-lib=opts
> 
> I tried the following (yes that is directly from source code, not using the
> ports system, that will be the next step)
> 
> ./configure
> --with-xerces
> --with-xerces-inc=/usr/local
> --with-xerces-lib="-L/usr/local/lib -lxerces-c2.1.0 -lpthread" *
> 
> 
> *this is from the example ./configure --help, I've changed the version
> number.
> 
> 
> That's the output:
> 
> .
> .
> .
> checking for Xerces C++... requested, but compile or link fails!
> 
> c++ -I/usr/local -I/usr/local/include -o conftest
> conftest.cpp -L/usr/local/lib -lxerces-c2_1_0 -lpthread -lpng -lz -lm -L/usr
> /local/lib
> 
> conftest.cpp:1: util/PlatformUtils.hpp: No such file or directory
> 
> configure: error: Please correct Xerces options, or don't enable Xerces.
> 
> 
> What do I have to specify for gdal & xerces and which version of xerces do I
> have to install?
> 
> Thanks,
> Benjamin
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 

-- 
Paul Spencer
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca





More information about the mapserver-users mailing list