[Gate-users] installing gate from git
Andrej Studen
Andrej.Studen at ijs.si
Fri May 15 11:42:33 CEST 2015
Hello!
I want to share the experience of installing Gate from git on a
3.18.10-gentoo box. It basically installed out of the box with three
interferences:
1.) I had to add -std=c++11 to CMAKE_CXX_FLAGS because that is how Geant
and ROOT were compiled. New versions of root (ours is 6.02/05) are c++11
based. In ccmake window toggle to advanced mode via [t] and add the
flag, then re-configure [c] and then generate [g] before re-running make.
2.) in some files ifstream and ofstream are not prepended by std:: as
they should be without a global using namespace std. I used replace, e.g.:
#> replace ofstream std::ofstream --
source/physics/src/GateCrossSectionsTable.cc
My picky gcc is:
gcc version 4.9.2 (Gentoo 4.9.2 p1.3, pie-0.6.2)
replace is a part of the mysql suite.
3.) Since I used c++11 standard of c++, some CLHEP files assumed I want
Thread Local Storage (TLS) enabled, which caused a mismatch between the
compiled version of CLHEP (TLS disabled) and Gate portion of CLHEP (TLS
enabled). To resolve, I replaced
source/externals/clhep/include/CLHEP/Utility/thread_local.h
with a new thread_local.h where CLHEP_THREAD_LOCAL is defined to an
empty string:
#define CLHEP_THREAD_LOCAL
Maybe this helps someone out there.
Andrej
More information about the Gate-users
mailing list