[Gate-users] Problem with the installation of the optical and davis functions

jbaran jbaran at ifj.edu.pl
Mon Mar 19 19:11:00 CET 2018


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:
http://wiki.opengatecollaboration.org/index.php/Enabling_LUT_Davis_Model

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


More information about the Gate-users mailing list