Instructions for cross-compiling Xerces-C++ 310 for PPC using nova crosscompiler v4 1 0-2 3 6

(Installed on 3/24/2010)
  • First set up the ups products area
    o ksu root
    o su products
    o mkdir /fnal/ups/prd/xerces_c/v3_1_0
    o cd /fnal/ups/prd/xerces_c/v3_1_0
    o mkdir LinuxPPC-GCC_4_1_0
    o cd LinuxPPC-GCC_4_1_0
    o mkdir ups
    o cd ups
    o (create the xerces_c.table)
  • Build a cross-compiled version of Xerces-C++
    o cd /scratch/products/ppcinstall/
    o mkdir xerces_c
    o cd xerces_c
    o wget
    o tar -zxvf xerces-c-3.1.0.tar.gz
    o cd xerces-c-3.1.0
    o setup icu4c v4_4_rc1 -f LinuxPPC -q GCC_4_1_0
    o setup nova_crosscompiler -q powerpc-603
    o ./configure --prefix=/fnal/ups/prd/xerces_c/v3_1_0/LinuxPPC-GCC_4_1_0 --enable-transcoder-icu --host=powerpc-603-linux-gnu CXX=powerpc-603-linux-gnu-g++ CC=powerpc-603-linux-gnu-gcc --with-icu=/fnal/ups/prd/icu4c/v4_4_rc1/LinuxPPC-GCC_4_1_0 --disable-netaccessor-curl >& configure.log &
    o gmake >& gmake.log &
    o gmake install
  • Declare the product
    o cd /fnal/ups/prd/xerces_c/v3_1_0/LinuxPPC-GCC_4_1_0
    o ups declare -c -f LinuxPPC -q GCC_4_1_0 -r /fnal/ups/prd/xerces_c/v3_1_0/LinuxPPC-GCC_4_1_0 -m xerces_c.table xerces_c v3_1_0