[Gdal-dev] recent compile on cygwin?

Matt Wilkie matt.wilkie at gov.yk.ca
Thu Nov 15 18:02:57 EST 2007


> So, now I'm happy to report gdal compiles cleanly out of the box still. 
> Now I just have to try and figure out why it seems to missing the xerces 
> library.

I've verified that xerces-c and xerces-c-devel are installed, but 
configure tells me they are not there. When I search the packages for 
xerces there are some different versions available, do I need a specific 
one?

-------------------------------
((edited for brevity))

$ cyg-apt search xerces
libxerces-c21 - Runtime library for a validating XML parser written in a 
portable subset of C++
libxerces-c22 - Runtime library for a validating XML parser ...
libxerces-c23 - Runtime library for a validating XML parser ...
libxerces-c24 - Runtime library for a validating XML parser ...
libxerces-c25 - Runtime library for a validating XML parser ...
xerces-c - Runtime library for a validating XML parser ...
xerces-c-devel - A validating XML parser written in a portable ...
xerces-c-doc - Documentation for a validating XML parser written ...
-------------------------------


-------------------------------
$ ./configure
...snip...
checking for Xerces C++... requested, but compile or link fails!

g++ -I/usr/include -I/usr/include/xercesc -o conftest conftest.cpp 
-L/usr/lib -lxerces-c -lpthread -lz -ldl

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: 
cannot find -lxerces-c
collect2: ld returned 1 exit status

cat conftest.cpp
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#if (_XERCES_VERSION >= 20200)
     XERCES_CPP_NAMESPACE_USE
#endif
int main() {  XMLPlatformUtils::Initialize(); }
configure: error: Please correct Xerces options, or don't enable Xerces.

mhwilkie at geomatt /d/src/gdal-trunk
$ ls -l /usr/include/xercesc/
total 0
drwxrwx---+ 4 mhwilkie mkgroup-l-d 0 Nov 15 14:49 dom
drwxrwx---+ 3 mhwilkie mkgroup-l-d 0 Nov 15 14:49 framework
drwxrwx---+ 2 mhwilkie mkgroup-l-d 0 Nov 15 14:49 internal
drwxrwx---+ 2 mhwilkie mkgroup-l-d 0 Nov 15 14:49 parsers
drwxrwx---+ 2 mhwilkie mkgroup-l-d 0 Nov 15 14:49 sax
drwxrwx---+ 2 mhwilkie mkgroup-l-d 0 Nov 15 14:49 sax2
drwxrwx---+ 8 mhwilkie mkgroup-l-d 0 Nov 15 14:49 util
drwxrwx---+ 6 mhwilkie mkgroup-l-d 0 Nov 15 14:49 validators
------------------------------------



-- 
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------




More information about the gdal-dev mailing list