[Gate-users] GATE v7.2 installation error

Devin Van Elburg djvanel at lakeheadu.ca
Thu Aug 25 18:12:11 CEST 2016


Hello GATE users,

I'm trying to install GATE v7.2 on Ubuntu 16.04. I'm also using:

gcc 4.9.3
geant4.10.2
root 6.06.02

As far as I can see, geant4 and root have both been successfully compiled.
After configuring and generating in ccmake for gate, then running 'make
-j4', I get this error:

CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::SetOuterRadius(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14SetOuterRadiusEd[_ZN6G4Tubs14SetOuterRadiusEd]+0x323):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::SetZHalfLength(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14SetZHalfLengthEd[_ZN6G4Tubs14SetZHalfLengthEd]+0x26a):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::CheckDPhiAngle(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14CheckDPhiAngleEd[_ZN6G4Tubs14CheckDPhiAngleEd]+0x286):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::SetInnerRadius(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14SetInnerRadiusEd[_ZN6G4Tubs14SetInnerRadiusEd]+0x323):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCone.cc.o: In function
`G4Cons::CheckDPhiAngle(double)':
GateCone.cc:(.text._ZN6G4Cons14CheckDPhiAngleEd[_ZN6G4Cons14CheckDPhiAngleEd]+0x286):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateSphere.cc.o:GateSphere.cc:(.text._ZN8G4Sphere14CheckDPhiAngleEd[_ZN8G4Sphere14CheckDPhiAngleEd]+0x286):
more undefined references to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)' follow
collect2: error: ld returned 1 exit status
CMakeFiles/Gate.dir/build.make:16715: recipe for target 'Gate' failed
make[2]: *** [Gate] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2





I suppose I need to define this G4Exception function somewhere, or fix a
path to it. Something along those lines. Does anyone have any insights, or
have had this problem before?

Is it possible that the G4Exception are in these .cc.o files but defined
after they are called by other functions (in G4Tubs, etc), i.e. I need to
move G4Exception before say SetOuterRadius is defined? I was going to try
this, but I don't know of any programs that can read and edit .cc.o files.

Thanks in advance,
Devin Van Elburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160825/c7c5ef4b/attachment.html>


More information about the Gate-users mailing list