Skip to content

Instantly share code, notes, and snippets.

@jepio
Last active August 29, 2015 14:02
Show Gist options
  • Save jepio/6b92b0a1d20457e60c01 to your computer and use it in GitHub Desktop.
Save jepio/6b92b0a1d20457e60c01 to your computer and use it in GitHub Desktop.
A list of variables needed to get geant4 working properly in gentoo. Especially the qt4 stuff took a long time to figure out/find.
# Define geant4 env. variables
source /usr/share/Geant4-9.6.2/geant4make/geant4make.sh
echo "Geant4 Set"
# Define additional variables used by geant4, but that are different in gentoo
export QTMOC="/usr/bin/moc-qt4"
export QTFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL"
export QTLIBS="-L/usr/lib/qt4 -lQtCore -lQtGui"
export GLQTLIBS="-L/usr/lib/qt4 -lQtCore -lQtGui -lQtOpenGL"
echo "QT Set"
# If HEPMC is needed
export HEPMC_DIR="/usr/include/HepMC"
@jepio
Copy link
Author

jepio commented Jun 19, 2014

To use just add source geant4.sh in your .bashrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment