[gdal-dev] Strange issue on debian squeeze

Even Rouault even.rouault at mines-paris.org
Tue Mar 15 19:54:06 EDT 2011


Le mardi 15 mars 2011 23:49:30, Marco Lechner - FOSSGIS e.V. a écrit :
> I can reproduce this feature/bug on a freshly installed minimal squeeze
> having nothing than downloaded gdal-source using

Well, I've just installed a virtual machine with a Debian Squeeze 64 bit and 
installed libxerces-c-dev and ibxerces-c3.1

All : You don't need to provide any argument at all. ./configure will 
automagically find xerces (at least for Debian and most other popular distros)

Marco : If you want to provide the arguments, you must be aware that the --
with-xerces-lib must be followed with the linker flags and not the library 
path. So it should be :  ./configure --with-xerces=yes --with-xerces-
inc=/usr/include/ --with-xerces-lib="-lxerces-c"

Oliver : stupid question, but did you check if g++ is installed. Not 
recognizing xerces (which has a C++ API) would be a typical symtom of an 
absence of g++.

Admitedly, GDAL ./configure should error out loudly at the very moment where it 
can't find a c++ compiler...

> 
> # ./configure --with-xerces=yes --with-xerces-inc=/usr/include/
> --with-xerces-lib=/usr/lib/
> 
> and having installed
> 
> i libxerces-c-dev
> v libxerces-c3-dev
> v libxerces-c3-doc
> v libxerces-c3-samples
> i libxerces-c3.1
> 
> providing
> 
> libxerces-c-3.1.so
> libxerces-c.a
> libxerces-c.la
> libxerces-c.so
> 
> in /usr/lib
> 
> and providing a bunch of *.hpp in subfolders of /usr/include/xercesc
> 
> Marco
> 
> Am 15.03.2011 20:15, schrieb Stephen Woodbridge:
> > On 3/15/2011 2:23 PM, Chaitanya kumar CH wrote:
> >> Oliver,
> >> 
> >> Can you confirm if you have xerces headers in /etc/include directory?
> > 
> > That should probably say /usr/include directory, in case that was not
> > obvious.
> > 
> > -Steve
> > 
> >> On Tue, Mar 15, 2011 at 11:13 PM, Oliver Burger
> >> 
> >> <oliver.bgr at googlemail.com <mailto:oliver.bgr at googlemail.com>> wrote:
> >>     I have a strange problem installing gdal-1.8.0 on a debian
> >> 
> >> squeeze 64bit
> >> 
> >>     server.
> >>     
> >>     I'm using the following configure:
> >>     ./configure --prefix=/usr/local/gdal-1.8.0 --with-xerces=yes
> >>     
> >>     Installed are:
> >>     libxerces-c-dev             3.1.1-1+b1
> >>     libxerces-c3.1              3.1.1-1+b1
> >>     
> >>     out of the debian repositories.
> >>     
> >>     And I'm getting the following output from configure:
> >>     checking for Xerces C++ Parser headers in /usr/include and
> >>     /usr/include/xercesc... not found
> >>     checking for Xerces C++ Parser... no
> >>     Xerces-C support:          no
> >>     
> >>     The same happens e.g. with expat and openjpeg.
> >>     
> >>     It's working all right on a Ubuntu 32bit and a Mandriva 32bit
> >> 
> >> machine.
> >> 
> >>     Do you have any idea, what is happening here?
> >>     
> >>     
> >>     Thanks,
> >>     
> >>     Oliver
> >>     _______________________________________________
> >>     gdal-dev mailing list
> >>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
> >>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >> 
> >> _______________________________________________
> >> gdal-dev mailing list
> >> gdal-dev at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> > 
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list