Hi List, I'm having some problems compiling gdal with xerces support.<br><br>Using xerces veresion 2.7.0 on Redhat.<br><br>I compile xerces from notes at: <a href="http://xml.apache.org/xerces-c/build-winunix.html#UNIX">
http://xml.apache.org/xerces-c/build-winunix.html#UNIX</a><br><br>set environment variable<br>runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread<br>gmake<br><br>Then I go to gdal version 1.4.2 and compile with:
<br>./configure CFLAGS=-fPIC CPPFLAGS=-fPIC CXXFLAGS=-fPIC --with-ogr --without-python --with-xerces<br>make<br><br>Eventually I get:<br> g++ -Wall -fPIC -I/usr/local/include/xercesc -I/usr/local/include/xercesc/xercesc -DOGR_ENABLED -fPIC -I/usr/local/src/gdal-
1.4.2/port -I.. -c iom_attr.cpp -fPIC -DPIC -o ../../o/.libs/iom_attr.o<br>In file included from iom_attr.cpp:26:<br>../iom/iom_p.h:43:55: xercesc/framework/LocalFileFormatTarget.hpp: No such file or directory<br>In file included from iom_attr.cpp:26:
<br>../iom/iom_p.h:68: error: expected constructor, destructor, or type conversion before "class"<br>../iom/iom_p.h:89: error: `XmlWrtAttr' has not been declared<br>../iom/iom_p.h:89: error: ISO C++ forbids declaration of `attrv' with no type
<br>../iom/iom_p.h: In destructor `StrX::~StrX()':<br>../iom/iom_p.h:732: error: `release' is not a member of `XMLString'<br>../iom/iom_p.h: In destructor `XStr::~XStr()':<br>../iom/iom_p.h:777: error: `release' is not a member of `XMLString'
<br>iom_attr.cpp: In function `const char* iom_getattrname(iom_object*, int)':<br>iom_attr.cpp:44: error: `release' is not a member of `XMLString'<br>iom_attr.cpp: In function `char* iom_getattrvalue(iom_object*, const char*)':
<br>iom_attr.cpp:67: error: `release' is not a member of `XMLString'<br>iom_attr.cpp: In function `char* iom_getattrvalueUTF8(iom_object*, const char*)':<br>iom_attr.cpp:85: error: `release' is not a member of `XMLString'
<br>iom_attr.cpp: In function `void iom_setattrvalueUTF8(iom_object*, const char*, const char*)':<br>iom_attr.cpp:114: error: `release' is not a member of `XMLString'<br>iom_attr.cpp: In function `char* iom_getattrprim(iom_object*, const char*, int)':
<br>iom_attr.cpp:135: error: `release' is not a member of `XMLString'<br>iom_attr.cpp: In function `char* iom_getattrprimUTF8(iom_object*, const char*, int)':<br>iom_attr.cpp:151: error: `release' is not a member of `XMLString'
<br>iom_attr.cpp: In function `const char* iom_getxmleleattrname(iom_object*, int)':<br>iom_attr.cpp:225: error: `release' is not a member of `XMLString'<br>iom_attr.cpp: In function `char* iom_getxmleleprim(iom_object*, int)':
<br>iom_attr.cpp:249: error: `release' is not a member of `XMLString'<br>iom_attr.cpp: In function `char* iom_getxmleleprimUTF8(iom_object*, int)':<br>iom_attr.cpp:266: error: `release' is not a member of `XMLString'
<br>make[4]: *** [../../o/iom_attr.o] Error 1<br>make[4]: Leaving directory `/usr/local/src/gdal-1.4.2/ogr/ogrsf_frmts/ili/iom'<br>make[3]: *** [iom-target] Error 2<br>make[3]: Leaving directory `/usr/local/src/gdal-1.4.2
/ogr/ogrsf_frmts/ili'<br>make[2]: *** [ili-target] Error 2<br>make[2]: Leaving directory `/usr/local/src/gdal-1.4.2/ogr/ogrsf_frmts'<br>make[1]: *** [sublibs] Error 2<br>make[1]: Leaving directory `/usr/local/src/gdal-
1.4.2/ogr'<br>make: *** [ogr-target] Error 2<br>[root@niceguy gdal-1.4.2]# ls /usr/local/include/xercesc<br><br><br>I have tried with XERCESCROOT="/usr/local/src/xerces-c-src_2_7_0/src"<br>and XERCESCROOT="/usr/local/src/xerces-c-src_2_7_0/"
<br>as with various configuration options on gdal for include directory, etc. but no idea what they should be set to.<br><br>The first missing file: xercesc/framework/LocalFileFormatTarget.hpp is indeed located at:<br>/usr/local/src/xerces-c-src_2_7_0/src/xercesc/framework
<br><br>I'm so close to finishing what I need! does anyone have any ideas what's causing this or how to get around it?<br><br>Thanks!<br>-Ed<br>