mapnik / mapnik-gyp

GYP build system for Mapnik 3.x
8 stars 7 forks source link

Building with libxml2 #5

Open JamesRamm opened 9 years ago

JamesRamm commented 9 years ago

Have added HAVE_LIBXML2 to the gyp file. Error I'm getting is:

HAVE_LIBXML2 defined but compiling rapidxml_loader.cpp!

Extra configuration step needed?

JamesRamm commented 9 years ago

Manually removing rapidxml_loader.cpp from the source tree enabled mapnik to build correctly with libxml2.

Should the first line in rapidxml_loade.cpp:

#ifdef HAVE_LIBXML2
#error 
#endif

be changed to:

#ifndef HAVE_LIBXML2

     // rest of the file.....
#endif

??