...
- 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
- Download the Xerces tarball.
No Format wget http://www.apache.org/dist/xml/xerces-c/xerces-c-src_2_6_0.tar.gz
- Unzip the tarball.
No Format tar -zxvf xerces-c-src_2_6_0.tar.gz
- Set the temporary XERCESCROOT in the environment.
No Format export XERCESCROOT=${sim_work}/xerces-c-src_2_6_0
- Go into the Xerces-C++ build area.
No Format cd xerces-c-src_2_6_0/src/xercesc
- Configure the build.
No Format ./runConfigure -pcygwin -cgcc -xg++ \ -minmem -nsocket -tnative -rpthread \ -P `cd ../..; pwd`
- Build and install it.
No Format make make install
- 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.
...
- 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
- Go into the lcdd LCDD dir.
No Format cd lcdd
- Configure the build.
No Format ./configure
- Build the library.
No Format make
- Set the LCDD_BASE variable in setup.sh.
No Format export LCDD_BASE=${sim_work}/lcdd
SLIC
- 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
- Go into the SLIC dir.
No Format cd slic
- Set the SLIC_BASE variable in setup.sh.
No Format export SLIC_BASE=${sim_work}/slic
- Configure the build.
No Format ./configure
- 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
|