Versions Compared

Key

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

...

  1. Go back to the work dir, create a subdir for Xerces-C++, and go into it.
    No Format
    cd $sim_wrk
    mkdir xercesc
    cd xercesc
    
  2. Download the Xerces tarball.
    No Format
    wget http://www.apache.org/dist/xml/xerces-c/xerces-c-src_2_6_0.tar.gz
    
  3. Unzip the tarball.
    No Format
    tar -zxvf xerces-c-src_2_6_0.tar.gz
    
  4. Set the temporary XERCESCROOT in the environment.
    No Format
    export XERCESCROOT=${sim_work}/xerces-c-src_2_6_0
    
  5. Go into the Xerces-C++ build area.
    No Format
    cd xerces-c-src_2_6_0/src/xercesc
    
  6. Configure the build.
    No Format
    ./runConfigure -pcygwin -cgcc -xg++ \
    -minmem -nsocket -tnative -rpthread \
    -P `cd ../..; pwd`
    
  7. Build and install it.
    No Format
    make
    make install
    
  8. In setup.sh, set XERCESCROOT to the installation area and add the library path.
    No Format
    export XERCESCROOT=${sim_work}/xercesc
    export PATH=$XERCESCROOT/lib:$PATH
    

GDML

GDML's CVS is not directly accessible from the command line, but a tarball is available through a WWW interface.

...

  1. Go to the work dir and checkout LCDD.
    No Format
    cd ${sim_work}
    cvs -d CVSROOT=:pserver:anonymous@cvs.freehep.org:/cvs/lcd checkout lcdd
    
  2. Go into the lcdd LCDD dir.
    No Format
    cd lcdd
    
  3. Configure the build.
    No Format
    ./configure
    
  4. Build the library.
    No Format
    make
    
  5. Set the LCDD_BASE variable in setup.sh.
    No Format
    export LCDD_BASE=${sim_work}/lcdd
    

SLIC

  1. Go to the work dir and checkout SLIC.
    No Format
    
    cd ${sim_work}
    cvs -d CVSROOT=:pserver:anonymous@cvs.freehep.org:/cvs/lcd checkout slic
    
  2. Go into the SLIC dir.
    No Format
    
    cd slic
    
  3. Set the SLIC_BASE variable in setup.sh.
    No Format
    
    export SLIC_BASE=${sim_work}/slic
    
  4. Configure the build.
    No Format
    
    ./configure
    
  5. Build the binary.
    No Format
    
    make all
    

If the test completes successful, you should see SLIC's usage statement as it runs and then exits.

Final Setup Script

The final setup.sh should look like this.

No Format

#!/bin/sh

# 1 work area
export sim_work=/cygdrive/c/work/nsim

# 2 java
export JAVA_HOME=/cygdrive/c/Java/jdk1.5.0_01
export JDK_HOME=${JAVA_HOME}

# 3 clhep installation area
export CLHEP_BASE_DIR=${sim_work}/clhep

# 4 geant4
export G4INSTALL=${sim_work}/geant4/geant4.7.0.p01
export G4SYSTEM=WIN32-g++
#export OGLHOME=/usr/X11R6
#export OGLHOME=/usr
#export G4VIS_BUILD_OPENGLX_DRIVER=1
#export G4VIS_USE_OPENGLX=1

# 5 LCPhys
export LCPHYS_BASE=${sim_work}/LCPhys

# 6 LCIO
export LCIO=${sim_work}/lcio

# 7 Xerces-C++ installation area
export XERCESCROOT=${sim_work}/xercesc
export PATH=$XERCESCROOT/lib:$PATH

# 8 GDML
export GDML_BASE=${sim_work}/GDML2/CPPGDML
export PLATFORM=cygwin_g++

# 9 LCDD
export LCDD_BASE=${sim_work}/lcdd

# 10 SLIC
export SLIC_BASE=${sim_work}/slic

Additional Resources