Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. The source can be found here /nfs/farm/g/glast/u05/extlib/xerces/xerces-c-src_2_7_0-gl1-mac.tar.gz
  2. Copy the source to a temporary directory
  3. Run the following
    Code Block
    tar -zxvf xerces-c-src_2_7_0-gl1-mac.tar.gz
    setenv XERCESCROOT <path-to-xerces-c-src_2_7_0-gl1-mac>/xerces-c-src_2_7_0-gl1-mac
    cd xerces-c-src_2_7_0-gl1-mac
    cd src/xercesc
    ./runConfigure -p macosx -n native -t native -P <install-path>
    
    

Why the patch?

The version of xerces that was being used assumes a PPC mac only so it builds as big endian (breaking xml parsing on intel macs). The newer (3.x) versions of xerces check at runtime but it is easy to check at build time in the version we use.

...

No need to fix this file because xerces-c-src_2_7_0-gl1-mac.tar.gz already contains the patch.

Obtaining the original MacOSDefs.hpp (without the patch)

If for any reason you need the original file, then it's located in
<path-to-xerces-c-src_2_7_0-gl1-mac>/xerces-c-src_2_7_0-gl1-mac/MacOSDefs.hpp-original

Building xerces-2.7.0 against the original MacOSDefs.hpp

If you want to build this xerces-2.7.0-gl1 against the original MacOSDefs.hpp file there are 2 methods to do it

...