Versions Compared

Key

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

...

  1. Download www.cygwin.com/setup.exe from the 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
    3. If you want to use Geant4's OpenGL drivers, you need to install X Windows, too. I believe these two packages should give you all the required X11 dependencies.
      • X11 -> xorg-x11-base
      • X11 -> xorg-x11-xwin
  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.

...

  1. Return to the work dir, create a Geant4 work subdir and go into it.
    No Format
    cd $sim_work
    mkdir geant4
    cd geant4
    
  2. Download the Geant4 tarball.
    No Format
    wget http://geant4.cern.ch/geant4/source/source/geant4.7.0.p01.tar.gz
    
  3. Unzip it.
    No Format
    tar zxvf geant4.7.0.p01.tar.gz
    
  4. Setting the following variables in $sim_work/setup.sh should allow you to compile without running the ./Configure script.
    No Format
    G4INSTALL=${sim_wrk}/geant4/geant4.7.0.p01
    G4SYSTEM=WIN32-g++
    OGLHOME=/usr/X11R6
    
  5. Go into the Geant4 install dir.
    No Format
    cd geant4.7.0.p01
    
  6. Build the libraries. These will be placed at $G4INSTALL/lib/WIN32-g++. (Maybe you should let this run overnight!)
    No Format
    make
    
  7. Build the physics list libraries. These will go into $G4INSTALL/lib/plists/WIN32-g++.
    No Format
    cd ../physics_lists/hadronic
    make
    cd ../electromagnetic
    make
    

...