[Mapserver-users] Building gdal with Xerces

Benjamin Thelen CCGIS benjamin.thelen at ccgis.de
Tue May 20 13:05:00 EDT 2003


Hi Paul,

Thanks! See the posting from Frank half an hour later than yours. He sais,
that newer versions should be recognized. I checked today and posted an
answer to Franks Mail with a bit more information.

How did you manage that? What did you change in that environment variable?

Regards,
Benjamin

> -----Original Message-----
> From: Paul Spencer [mailto:pagameba at magma.ca]
> Sent: Friday, May 16, 2003 7:45 PM
> To: Benjamin Thelen (CCGIS); Mapserver Users
> Subject: Re: [Mapserver-users] Building gdal with Xerces
>
>
> My understanding is that the gdal configure only recognizes 1.6.0 at the
> moment.  FYI, I have successfully installed both 1.6.0 and 2.1.0 and
> 2.2.0 concurrently, and got both gdal and some other software based on
> newer versions to build correctly, it just takes a little juggling of
> XERCESCSRC environment variable.
>
> Cheers,
>
> Paul
>
> Benjamin Thelen (CCGIS) wrote:
>
> > That means 1.7.0 won't run? Do you think, that xerces 1.6.0 would
> > automatically be recognized by gdal at installation time of
> gdal? Otherwise
> > I would have to find out what to specify for --with-xerces-in=dir
> > and --with-xerces-lib=opts. Especiall the last one is a miracle to me.
> >
> > Thanks,
> > Ben
> >
> >
> >>-----Original Message-----
> >>From: Paul Spencer [mailto:pagameba at magma.ca]
> >>Sent: Thursday, May 15, 2003 2:41 PM
> >>To: Benjamin Thelen (CCGIS)
> >>Cc: mapserver-users at lists.gis.umn.edu
> >>Subject: Re: [Mapserver-users] Building gdal with Xerces
> >>
> >>
> >>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
> >>
> >>
> >>
> >>
> >
> >
> >
>
> --
> Paul Spencer
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>
>
>
>




More information about the mapserver-users mailing list