[Gdal-dev] gdal config icluding xerces

Daniel Isenegger disen at geo.unizh.ch
Fri Jul 9 08:43:15 EDT 2004


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

...
checking for Xerces C++... requested, but compile or link fails!

g++ -I/downloads/xerces/xerces-c-src2_1_0/include -o conftest 
conftest.cpp -L/downloads/xerces/xerces-c-src2_1_0/lib -lpthread 
-L/usr/local/grass-5.7.0 -L/usr/local/grass-5.7.0/lib -lgrass5 -lz -lm -ldl

conftest.cpp:1:34: util/PlatformUtils.hpp: No such file or directory
conftest.cpp: In function `int main()':
conftest.cpp:5: error: `XMLPlatformUtils' undeclared (first use this 
function)
conftest.cpp:5: error: (Each undeclared identifier is reported only once 
for
   each function it appears in.)
conftest.cpp:5: error: syntax error before `::' token

configure: error: Please correct Xerces options, or don't enable Xerces.





- when using Xerces 1.6.0 (binary):

./configure --with-grass=/usr/local/grass-5.7.0 
--with-pg=/usr/local/pgsql/bin/pg_config --with-xerces 
--with-xerces-inc=/downloads/xerces/xerc./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-c1_6_0-linux/include 
--with-xerces-lib="-L/downloads/xerces/xerces-c1_6_0-linux/lib 
-lxerces-c1_6_0 -lpthread" --with-odbc=/usr/local/lib 
--with-static-proj4=/usr/lib/libproj.so | tee configure_disen.log

...
checking for Xerces C++... requested, but compile or link fails!

g++ -I/downloads/xerces/xerces-c1_6_0-linux/include -o conftest 
conftest.cpp -L/downloads/xerces/xerces-c1_6_0-linux/lib -lxerces-c1_6_0 
-lpthread -L/usr/local/grass-5.7.0 -L/usr/local/grass-5.7.0/lib -lgrass5 
-lz -lm -ldl

/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: 
cannot find -lgrass5
collect2: ld returned 1 exit status

configure: error: Please correct Xerces options, or don't enable Xerces


- with xerces 2.1.0: the file util/PlatformUtils.hpp is there
(The environment variables XERCESROOT, PATH, LD_LIBRARY_PATH are set to 
the appropriate directories)
- with xerces 1.6: what is the difference in the error message? coming 
from the same problems?
- how to solve them?

I browsed trough the archives and found similar errors, but no 
suggestions to fix them (:-(

Any ideas?

Thanks Dani




More information about the Gdal-dev mailing list