Gemc Build Notes
From Nuclear Physics Group Documentation Pages
General gemc
- Pan scales to zoom for sane panning
- G4 command line on the gui for a little more control
- Figure out and neaten up event logging
- Make some of the dead features in the gui functional
- Not be lost in the code
Stuff for me
Database programming
OO
- callbacks
SOA
Pointers
Building
These notes are just that - notes. Contact ungaro@jlab.org if you have any questions, as he plans on building a detailed build guide.
Prereqs
One needs:
- qt4
- python > 2.3
- scons
- CLHEP
- geant4
- mysql
- gemc source
Already Installed
We already have python, mysql
Building Info
qt4
./configure -prefix "install directory" -qt-sql-mysql gmake gmake install ...no problems
gemc
put qt4.py in SCONS_LIB_DIR/Tool
export QTDIR="/net/home/kyle/CLAS12/gemc/qt"
export SCONS_LIB_DIR="/net/home/kyle/CLAS12/gemc/sconsinst/lib/"
export PKG_CONFIG_PATH="/net/home/kyle/CLAS12/gemc/qt/lib/pkgconfig"
export PATH="$PATH:/neth/home/kyle/CLAS12/gemc/sconsinst/bin"
getting :
"KeyError: 'MYSQL':
File "/net/home/kyle/CLAS12/gemc/gemc/SConstruct", line 27:
loadmysql(env)
File "/net/home/kyle/CLAS12/gemc/pyscripts/loadmysql.py", line 9:
MYSQL = OSENV['MYSQL']
File "/usr/lib/python2.3/UserDict.py", line 19:
def __getitem__(self, key): return self.data[key]"
export MYSQL="/"
scons....builds fine
./gemc: error while loading shared libraries: libQtOpenGL.so.4: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/net/home/kyle/CLAS12/gemc/qt/lib"
WORKS!