Versions Compared

Key

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

...

  1. Obtain Xerces 2.7.0 source code from http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_7_0/source/xerces-c-src_2_7_0.tar.gz and save to /afs/slac/g/glast/ground/GLAST_EXT/leopard-i386-32bit/xerces if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/leopard-i386-32bit/apexerces
  3. Unzip and Untar the file ape-v2r3-srcxerces-2_7_0.tar.gz
  4. Change directory to apeto xerces-c-src_2_7_0/src/xercesc
  5. Edit file util/Platforms/MacOS/MacOSDefs.hpp
  6. Replace lines 25-28 with

    // ---------------------------------------------------------------------------
    // MacOS runs in big endian mode (PPC) or little endian (intel).
    // ---------------------------------------------------------------------------
    // This had to be changed to work on intel Macs but is not needed with
    // xerces version 3 and up. jcv

    #if defined(_BIG_ENDIAN) || defined(LITTLE_ENDIAN_)
    #if _BIG_ENDIAN_
    #define ENDIANMODE_BIG
    #else
    #define ENDIANMODE_LITTLE
    #endif
    #else
    #define ENDIANMODE_BIG
    #endif

  7. Set environment variable XERCESCROOT to /afs/slac/g/glast/ground/GLAST_EXT/leopard-i386-32bit/xerces/xerces-c-src_2_7_0/
  8. Execute ./runConfigure -p macosx -n native -t native -P Execute ./configure --prefix= /afs/slac/g/glast/ground/GLAST_EXT/leopard-i386-32bit/apexerces/2.7.30-gl1/gcc40
  9. Execute make
  10. Execute make install
  11. Execute install_name_tool -id libxerces-c.27.dylib ../../../2.7.0-gl1/gcc40/lib/libxerces-c.27.0.dylib
  12. Execute install_name_tool -id libxerces-depdom.27.dylib ../../../2.7.0-gl1/gcc40/lib/libxerces-depdom.27.0.dylib
  13. Leave and erase the ape xerces-c-src_2_7_0/src/xercesc directory