Geant4 external dependencies


Version >= 5.26. Please don't use 5.28, there is some problem with serialization. You need to compile ROOT with the following flag



If you can't get OpenInventor installed on your system using your native package manager (which is the recommended), you could try to compile it from scratch in user area. I have a snapshot of the version of OpenInventor which comes with athena (vp1) and which safely compiles in SLC. Get the tar.gz from afs


now as usual, untar, get into the directory and go configure with prefixes

$ configure --prefix=xxxxx --exec-prefix=xxxxx
$ make
$ make install
check that the installation is ok
$ ls -lrth xxxxx/lib

you should get the following libs  

later on when compiling Geant4, the Configure script will ask at some point where OpenInventor is installed. You should provide the location used for this installation.

IMPORTANT: If you installed OpenInventor as described in this section, you ought to set this environment variable. Your probably want to put this in your Geant4 setup (g4_installation_path/

export OI_EXT_VP1=1


Before installing Geant4 you need xerces support (xml)

Get xerces.

$ wget 
The building docu is there, but if you feel lucky go this way: Untar and get inside the directory

$ tar xvfz xerces-c-3.1.1.tar.gz
$ cd xerces-c-3.1.1
$ mkdir -p $HOME/geant4deps/xerces 
$ ./configure --prefix=$HOME/geant4deps/xerces --exec-prefix=$HOME/geant4deps/xerces
note that --prefix and --exec-prefix falls in your user area. Now make (or gmake depending on your local config).
$ make 
$ make install 

check your installation

ls -lh $HOME/geant4deps/xerces

-- JohnIdarraga - 24 Feb 2011

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-08-02 - JohnIdarraga
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback