12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

AppendixUsage: ./configure SYSTEM [OPTION]... [VAR=VALUE]...SYSTEM: System type (see Supported Arhitectures)Options:-h, --helpDisplay this help and exitInstallation directories:--prefix=PREFIX Installation prefix [./]--libdir=DIRPython modules dir [PREFIX/lib]Fine tuning of the library path:--with-g4-incdir=DIR <strong>Geant4</strong> header dir [$G4INCLUDE]--with-g4-libdir=DIR <strong>Geant4</strong> library dir [$G4LIB/$G4SYSTEM]--with-clhep-incdir=DIR CLHEP header dir [$CLHEP_INCLUDE_DIR]--with-clhep-libdir=DIR CLHEP library dir [$CLHEP_LIB_DIR]--with-clhep-lib=LIB library name of libCLHEP.so [CLHEP|$CLHEP_LIB]--with-python-incdir=DIR Python header dir [/usr/include/python(2.#)],(location of pyconfig.h)--with-python-libdir=DIR Python library dir [/usr/lib(64)]--with-boost-incdir=DIR BOOST-C++ header dir [/usr/include],(location of boost/)--with-boost-libdir=DIR BOOST-C++ library dir [/usr/lib]--with-boost-python-lib=LIB library name of libboost_python.so [boost_python]--with-package-dir=DIR--with-extra-dir=DIR<strong>Geant4</strong> Package dirInstall path <strong>for</strong> extra packages [/usr/local]--with-xercesc-incdir=DIR Xerces-C header dir [/usr/include]--with-xercesc-libdir=DIR Xerces-C library dir [/usr/lib(64)]Enable/disable options: prefix with either --enable- or --disableopenglxOpenGLX support [auto]openglxm OpenGLXm support [disable, $G4VIS_USE_OPENGLXM]raytracerx RayTracerX support [disable, $G4VIS_USE_RAYTRACERX]Supported Architectures:linux<strong>for</strong> Linux gcc 3.x and 4.x (32bit)linux64<strong>for</strong> Linux gcc 3.x and 4.x (64bit, alias to linuxx8664gcc)linuxx8664gcc <strong>for</strong> AMD Opteron and Intel EM64T Linux gcc 3.x and 4.xmacosx<strong>for</strong> MacOSX with gcc (Tiger/Leopard and Xcode)For example, you run it like# ./configure linux64--with-g4-incdir=/opt/heplib/<strong>Geant4</strong>/geant4.9.3/include--with-g4-libdir=/opt/heplib/<strong>Geant4</strong>/geant4.9.3/slib/Linux-g++--with-clhep-incdir=/opt/heplib/CLHEP/2.0.4.5/include--with-clhep-libdir=/opt/heplib/CLHEP/2.0.4.5/lib--with-clhep-lib=CLHEP-2.0.4.5The configure script automatically check your environment, and create config/config.gmk, which describesyour envrionment. After executing the configure script successfully, then# make# make install8.2. Using <strong>Geant4</strong>PyPYTHONPATH environment variable should be set at tun time. PYTHONPATH environment variable indicatesPython module search directories, given by a colon-separated list of directories. Practically, the variable is (yourg4py directory)/lib.8.2.1. Import <strong>Geant4</strong>To use <strong>Geant4</strong>Py, you start with importing the module called "<strong>Geant4</strong>".# python304

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!