Difference between revisions of "Gemc Build Notes"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
Line 19: Line 19:
 
qt4
 
qt4
 
<pre>
 
<pre>
./configure -prefix "install directory"
+
./configure -prefix "install directory" -qt-sql-mysql
 
gmake
 
gmake
 
gmake install
 
gmake install
Line 29: Line 29:
 
put qt4.py in SCONS_LIB_DIR/Tool
 
put qt4.py in SCONS_LIB_DIR/Tool
  
QTDIR must be the base qt directory, ie the one that contains /bin, /lib, and /include
+
export QTDIR="/net/home/kyle/CLAS12/gemc/qt"
PKG_CONFIG_PATH must be QTDIR/lib/pkgconfig
+
export SCONS_LIB_DIR="/net/home/kyle/CLAS12/gemc/sconsinst/lib/"
need to set G4INSTALL
+
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]"
 +
This is the error we got before we compiled qt with mysql support, but I'm still getting it.
 
</pre>
 
</pre>

Revision as of 14:40, 16 November 2007

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]"
This is the error we got before we compiled qt with mysql support, but I'm still getting it.