Versions Compared

Key

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

...

The current version is available as a ZIP file containing a static binary packaged with the Xerces dlland the required DLLs.

Download the ZIP file using your browser and unzip the contents to C:*. You should see the directory *C:\slic_win32.

Test out the binary by running it in a console window.

...

Info

Unfortunately, the support for native WIN32 using project files is lacking.

Norman Graf has some Detailed Cygwin Installation InstructionsThese are brief instructions for installing the necessary Cygwin packages.

  1. Download www.cygwin.com/setup.exe from www.cygwin.com.
  2. Double-click on it and click Next.
  3. Select Install from Internet and click Next.
  4. Enter your preferred Root Directory and click Next.
  5. Enter your preferred Local Package Directory, which can be the same as the Root Directory, and then click Next.
  6. Select Direct Connection, if it is not already, click Next.
  7. Select a site from the Available Download Sites. Servers inside your country will probably be fastest. I use ftp://ftp.sunsite.utk.edu.
  8. Click Next.
  9. In the Cygwin Setup - Select Packages window, you need to make sure that the following tools are selected by clicking in the corresponding box under the New column until you see a version number.
    1. Required packages.
      • Devel -> cvs
      • Devel -> gcc-core
      • Devel -> gcc-g++
      • Devel -> make
      • Base -> gzip
      • Base -> tar
    2. Tool for downloading package tarballs and zip files.
      • Web -> wget
  10. Click Next after you have selected the packages.
  11. Cygwin will now automatically download and install all the selected packages. It might take awhile, so now is the time to go get some coffee.
  12. If desired, select Create icon on Desktop or Add icon to Start Menu, and click Finish.

If you want more details for the Cygwin installation process, Norman Graf has some Detailed Cygwin Installation Instructions.

Testing the Cygwin Command Line Tools

...

Warning

Throughout this guide, I assume you are using bash or at least another sh-compatible shell. I take no responsibility if you decide to use csh, tcsh, et al.

Work Area

We will install all packages The SLIC package and its dependencies will be installed into a common work area.

  1. From the Cygwin shell, create a work directory for SLIC and its external dependenciesand go into it.
    No Format
    cd /cygdrive/c
    mkdir sim
    cd sim
    
  2. Create the file setup.sh with the following contents. (We will be adding to this file as the installation proceeds. )
    No Format
    #!/bin/sh
    export sim_work=/cygdrive/c/sim
    
    Info

    We will be adding to this file as the installation proceeds in order to build-up the application environment.

  3. Source the script to setup the work dir.
    No Format
    source setup.sh
    
Tip

Throughout the guide, any time a line is added to setup.sh, it is presumed that you also set this up in the current environmentyou should also execute this line in your current bash shell. Probably the easiest way to do this is by adding to the script first and then (re)sourcing it.

Java

Java is required for installing LCIO installation.

  1. Install an appropriate JDK from http://java.sun.com/ with a minimum version of 1.4.2.
  2. In your setup.sh, set JAVA_HOME and JDK_HOME to the Java installation area.
    No Format
    export JAVA_HOME=/cygdrive/c/java/jdk1.4.2/
    export JDK_HOME=${JAVA_HOME}
    export PATH=$JDK_HOME:$JDK_HOME/bin
    
  3. To test the Java installation, try to run the compiler.
    No Format
    javac
    
Warning

The above JAVA_HOME directory is an example only. You need to replace it with the correct path to your JDK.

Proceed to Package Installation!

You are now ready to start install the installationsimulation packages.

Tip

Leave your The same Cygwin window open, as you will be using it should be used throughout the installation . This will also allow the environment to be built-up incrementally as the installation proceedsprocess in order to preserve the environment variables.

Package Installations

CLHEP

There are CLHEP has installation instructions for version 1.9 and up http://wwwasd.web.cern.ch/wwwasd/lhc++/clhep/INSTALLATION/newCLHEP-install.html.
version 1.9 and up. But you should not need them to setup the package.

...

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.4.2
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
export PATH=$LCIO/tools:$LCIO/bin:$PATH

# 7. Xerces-C++ installation area
export XERCESCROOT=${sim_work}/xercesc
export PATH=$XERCESCROOT/bin:$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

...