[GRASS-dev] WinGRASS: Xerces-C and Expat under MingW

benjamin.ducke at ufg.uni-kiel.de benjamin.ducke at ufg.uni-kiel.de
Mon Mar 3 09:18:41 EST 2008


Dear WinGRASS friends,

I just got hold of my old MinGW notes and would like
to contribute a bit to the GRASS Win binaries.

Has anyone got GDAL 1.5.0 to configure and compile correctly
*including* support for Xerces-C 2.8.0 on MinGW?

I have tried both DLL binaries and compilation from scratch
(which only creates static libs at the moment, but that's OK).

Now, the GDAL configure scripts tries to compile a small Xerces-C
test program and keeps failing like this:

C:/DOCUME~1/bart/LOCALS~1/Temp/cck1aaaa.o: In function
`ZN11xercesc_2_810XMLDeleterD1Ev':
C:/msys/1.0/local/include/xercesc/util/PlatformUtils.hpp:851: undefined
reference to `xercesc_2_8::XMLUni::fgXercescDefaultLocale'
C:/msys/1.0/local/include/xercesc/util/PlatformUtils.hpp:851: undefined
reference to `xercesc_2_8::XMLPlatformUtils::Initialize(char const*, char
const*, xercesc_2_8::PanicHandler*, xercesc_2_8::MemoryManager*, bool)'
collect2: ld returned 1 exit status

The crazy thing is that I know the libraries are fine and
I grepped for "" in the binaries and found the declaration for
the symbol "fgXercescDefaultLocale" in there!
(although it is not present in the "xercesc_2_8::XMLUni::" namespace
form, but I don't know whether it should be).

Also, I had Xerces-C as a static lib in the past and GDAL
would find and use it just fine. That was GDAL 1.4.4, though, so maybe
they just recently added that critical test program.

There are similar problems with Expat. I can also not get
GDAL 1.5 to recognize it.

Any help would be greatly appreciated. It seems that Xerces-C would
be important for WMS support in GDAL.

Best,

Benjamin



More information about the grass-dev mailing list