[Gate-users] GATE v7.2 installation error

秋河 838788426 at qq.com
Sat Aug 27 08:41:31 CEST 2016


You can use root5.34 try again!




------------------ 原始邮件 ------------------
发件人: "gate-users-request";<gate-users-request at lists.opengatecollaboration.org>;
发送时间: 2016年8月26日(星期五) 晚上6:00
收件人: "gate-users"<gate-users at lists.opengatecollaboration.org>; 

主题: Gate-users Digest, Vol 123, Issue 23



Send Gate-users mailing list submissions to
	gate-users at lists.opengatecollaboration.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
or, via email, send a message with subject or body 'help' to
	gate-users-request at lists.opengatecollaboration.org

You can reach the person managing the list at
	gate-users-owner at lists.opengatecollaboration.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gate-users digest..."


Today's Topics:

   1. GATE v7.2 installation error (Devin Van Elburg)
   2. Re: GATE v7.2 installation error (Andrej Studen)


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Aug 2016 12:12:11 -0400
From: Devin Van Elburg <djvanel at lakeheadu.ca>
To: gate-users at lists.opengatecollaboration.org
Subject: [Gate-users] GATE v7.2 installation error
Message-ID:
	<CACAgQ32fWnPFeCBB-sKZq1YSQ+Fu+ucMZ2vN51_CD4Qo102EFw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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-0001.html>

------------------------------

Message: 2
Date: Thu, 25 Aug 2016 22:17:50 +0200
From: Andrej Studen <andrej.studen at ijs.si>
To: gate-users at lists.opengatecollaboration.org
Subject: Re: [Gate-users] GATE v7.2 installation error
Message-ID: <50c61bd9-8f91-1bec-7387-12f82431f9a8 at ijs.si>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Devin!

This is a linking error. Somewhere in your code (be it G4Tubs or 
GateCylinder) the function G4Exception with the specified list of 
parameters is used. However, the library you are linking with doesn't 
have that function. Either you are missing the library containing 
G4Exception of the Geant library the compiler sees doesn't have that 
particular flavor of the G4Exception class. Since all errors are just 
for the one constructor, it could be that your header file and your 
library for G4Exception are not compatible. Do you by chance have more 
than one version of geant on your PC?

Hope this helps.

Andrej

Devin Van Elburg je 25. 08. 2016 ob 18:12 napisal:
> 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
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160825/51d17f79/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

------------------------------

End of Gate-users Digest, Vol 123, Issue 23
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160827/8e8057ae/attachment-0001.html>


More information about the Gate-users mailing list