Project

General

Profile

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

  • First set up the ups products area
    o ksu root
    o su products
    o cd /fnal/ups/prd/xerces_c/v3_0_1
    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 http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.0.1.tar.gz
    o tar -zxvf xerces-c-3.0.1.tar.gz
    o cd xerces-c-3.0.1
    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_0_1/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_0_1/LinuxPPC-GCC_4_1_0
    o ups declare -c -f LinuxPPC -q GCC_4_1_0 -r /fnal/ups/prd/xerces_c/v3_0_1/LinuxPPC-GCC_4_1_0 -m xerces_c.table xerces_c v3_0_1