30 likes | 234 Views
Geant4 Installation. Supported platforms: Scientific Linux 5 + 6 with gcc 4.1.2/4.6 Mac Os X 10.7 and 10.8 with gcc 4.21 Windows7 with Visual Studio 10
E N D
Geant4 Installation • Supported platforms: • Scientific Linux 5 + 6 with gcc 4.1.2/4.6 • Mac Os X 10.7 and 10.8 with gcc 4.21 • Windows7 with Visual Studio 10 • Other Linux distributions will usually work as well but paths to external libraries may have to be given manually, e.g. often Qt when using Ubuntu • Geant4 itself requires only aforementioned compilers + CMake • Additional capabilities (Visualization, GDML…) require external libraries (OGL, Mesa, Qt, LibXerces…)
Geant4 Installation • Installation is CMake based • Download source and untar/zip into (temporary) directory “/path/to/” , create geant4.x.x dir • Create build directory “/path/to/geant4-build” • In build dir: cmake –DCMAKE_INSTALL_PREFIX /install_dir/ [additional options] ../path/to/geant4.x.x • make [-jN] , with N cores to compile on • make install
Geant4 Installation – Some Useful Options • -DGEANT4_INSTALL_DATA=ONDownloads and installs data files during make • -DGEANT4_USE_GDML=ONBuild GDML support • -DGEANT4_USE_QT=ONBuild Qt user interface and visualization driver • -DGEANT4_USE_OPENGL_X11=ONBuild OpenGL X11 visualization driver • Full list of options available in Geant4 installation documentation