[Gdal-dev] HDF4 and Xerces config questions
jvarga at boulder.net
Thu Sep 4 00:28:39 EDT 2003
Trying to build GDAL with support for HDF4 and Xerces and have
stock Mandrake 9.1using gcc 3.2.2. Kernel is 2.4.21--0.13mdk. cpu is
athlon-tbird although uname -p fails to detect. Assume that is because
I'm using stock kernel.
...works fine, but as soon as I add another "--with-PACKAGE" option,
configure fails to detect hdf libs...
Ichecking for SDreaddata in -lmfhdf... no
checking for SDreaddata in -lhdf4... no
checking for SDreaddata in -lmfhdf... no
configure: error: HDF4 support requested with arg /usr/lib, but neither
hdf4 nor mfhdf lib found
Also, would like to compile in support for GML by using Xerces but not
sure what to pass as ARG. Currently using...
.../but that results in...
checking for Xerces C++... requested, but compile or link fails!
g++ -o conftest conftest.cpp -lxerces-c1_6_0 -lpthread -ljasper -lgif
-ljpeg -lpng -lgrass5 -lz -lm -ldl
conftest.cpp:1:34: util/PlatformUtils.hpp: No such file or directory
conftest.cpp: In function `int main()':
conftest.cpp:2: `XMLPlatformUtils' undeclared (first use this function)
conftest.cpp:2: (Each undeclared identifier is reported only once for
each function it appears in.)
conftest.cpp:2: parse error before `::' token
That's definitely where its at...
$ file /usr/local/xercesc/include/xercesc/util/PlatformUtils.hpp
/usr/local/xercesc/include/xercesc/util/PlatformUtils.hpp: ASCII C
More information about the Gdal-dev