[Gate-users] Problem with the installation of the optical and davis functions
Boersma David
david.boersma at medaustron.at
Mon Mar 19 19:33:02 CET 2018
Hi Jakub,
Welcome to Gate!
Before trying to reproduce the errors that you report, I'd like to ask some naïve questions:
1. You write that "building" geant4.10.03.03 went fine (after applying the Davis modifications). Did you also run "make install" after that successful build?
2. Are you sure that your modified geant4 installation is the *only* geant4 available on your system, and that this is indeed the one that the build system uses? You can find this out e.g. by "grep Geant4_DIR CMakeCache.txt" in the Gate build directory, or by recompiling Gate verbosely with "make clean; make VERBOSE=1".
3. Which compiler version are you using? (g++ --version)
Regards,
David
-----Original Message-----
From: Gate-users [mailto:gate-users-bounces at lists.opengatecollaboration.org] On Behalf Of jbaran
Sent: Monday, March 19, 2018 7:11 PM
To: gate-users at lists.opengatecollaboration.org
Subject: [Gate-users] Problem with the installation of the optical and davis functions
Dear All,
I am trying to build GATE v8.0 with the optical and LUT Davis model options enabled. I followed the guidelines in here:
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.opengatecollaboration.org%2Findex.php%2FEnabling_LUT_Davis_Model&data=02%7C01%7Cdavid.boersma%40medaustron.at%7C62ffe3fb6141401f611b08d58dc4d919%7Cadb749e06dfd4f6fbea8cd9f8e0c9b89%7C0%7C0%7C636570798948022047&sdata=%2BV64lgOP1Q8LzRupKQuoMpF0aaQts8I7pCqduYW7tZQ%3D&reserved=0
It is seems that building Geant4.10.03.03 works fine, however I found the problems with the building the Gate itself.
The error looks as follows:
// START
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc: In member function ‘G4OpticalSurface* GateSurface::ReadOpticalSurface(const
G4String&) const’:
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:129:46:
error: ‘DAVIS’ was not declared in this scope
if(model == "DAVIS") surface->SetModel(DAVIS);
^~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:140:63:
error: ‘dielectric_LUTDAVIS’ was not declared in this scope
else if (type=="dielectric_LUTDAVIS")
surface->SetType(dielectric_LUTDAVIS);
^~~~~~~~~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:152:56:
error: ‘Rough_LUT’ was not declared in this scope
else if (finish=="Rough_LUT") surface->SetFinish(Rough_LUT);
^~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:153:62:
error: ‘RoughTeflon_LUT’ was not declared in this scope
else if (finish=="RoughTeflon_LUT")
surface->SetFinish(RoughTeflon_LUT);
^~~~~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:154:59:
error: ‘RoughESR_LUT’ was not declared in this scope
else if (finish=="RoughESR_LUT")
surface->SetFinish(RoughESR_LUT);
^~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:155:65:
error: ‘RoughESRGrease_LUT’ was not declared in this scope
else if (finish=="RoughESRGrease_LUT")
surface->SetFinish(RoughESRGrease_LUT);
^~~~~~~~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:156:59:
error: ‘Polished_LUT’ was not declared in this scope
else if (finish=="Polished_LUT")
surface->SetFinish(Polished_LUT);
^~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:157:65:
error: ‘PolishedTeflon_LUT’ was not declared in this scope
else if (finish=="PolishedTeflon_LUT")
surface->SetFinish(PolishedTeflon_LUT);
^~~~~~~~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:158:62:
error: ‘PolishedESR_LUT’ was not declared in this scope
else if (finish=="PolishedESR_LUT")
surface->SetFinish(PolishedESR_LUT);
^~~~~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:159:68:
error: ‘PolishedESRGrease_LUT’ was not declared in this scope
else if (finish=="PolishedESRGrease_LUT")
surface->SetFinish(PolishedESRGrease_LUT);
^~~~~~~~~~~~~~~~~~~~~
/home/jakub/Dev/Gate/gate_v8.0/source/geometry/src/GateSurface.cc:160:59:
error: ‘Detector_LUT’ was not declared in this scope
else if (finish=="Detector_LUT")
surface->SetFinish(Detector_LUT);
^~~~~~~~~~~~ [ 29%] Building CXX object CMakeFiles/Gate.dir/source/geometry/src/GateImageNestedParametrisedVolumeMessenger.cc.o
CMakeFiles/Gate.dir/build.make:4598: recipe for target 'CMakeFiles/Gate.dir/source/geometry/src/GateSurface.cc.o' failed
make[2]: *** [CMakeFiles/Gate.dir/source/geometry/src/GateSurface.cc.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Gate.dir/all'
failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
// END
My basic knowledge about C++ tells me that the indicated variables might be either not declared at all or declared locally instead of globally (more likely) and this is why the errors pop up.
Before I start the building after adding Davis Model I clean everything (make clean) and configure (ccmake) from the scratch.I tried to compile without that option and everything works fine.
I am new with Gate and would really appreciate yours' help with this matter.
Regards,
Jakub
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=02%7C01%7Cdavid.boersma%40medaustron.at%7C62ffe3fb6141401f611b08d58dc4d919%7Cadb749e06dfd4f6fbea8cd9f8e0c9b89%7C0%7C0%7C636570798948022047&sdata=qUEA4Zihj1qkSCIpklrW9UG0HnEgtMzQBtUV0Q4yiyo%3D&reserved=0
Disclaimer:
Please notice our E-Mail Disclaimer http://www.medaustron.at/email-disclaimer/
More information about the Gate-users
mailing list