Message: Problem building GRAS code Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problem building GRAS code 

Forum: Space Applications
Date: 24 May, 2013
From: Leonardo Ghizoni <Leonardo Ghizoni>

Hello,

I've downloaded the GRAS code to perform Geant4 space applications simulations. When building the code, I ran the command with cmake:

lghizoni@EQSAPhysics:~/Geant4/Gras-build$ cmake -DCMAKE_INSTALL_PREFIX=/home/lghizoni/Geant4/geant4.9.6-install/ -DWITH_ROOT=ON -DSTATIC_BUILD=ON -DGRAS_INSTALL_PREFIX=/home/lghizoni/Geant4/Gras-build/ /home/lghizoni/Geant4/Gras

That went OK, no errors! But then I ran 'make', and got the following error:

lghizoni@EQSAPhysics:~/Geant4/Gras-build$ make
Scanning dependencies of target gras_lib
[  0%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASNIELAnalysisModuleMessenger.cc.o
[  1%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASAnalysisManager.cc.o
[  1%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASFluenceAnalysisModule.cc.o
[  1%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASNIELCurveSetGaAsSummers.cc.o
[  2%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASChargeCollectionAnalysisModule.cc.o
[  2%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASEqDoseAnalysisModule.cc.o
[  3%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASNIELCurveSet_JPL_NRL_NASA_InP.cc.o
[  3%] Building CXX object CMakeFiles/gras_lib.dir/source/analysis/src/GRASActivationAnalysisModule.cc.o
/home/lghizoni/Geant4/Gras/source/analysis/src/GRASActivationAnalysisModule.cc: In member function ‘virtual void GRASActivationAnalysisModule::EndOfRun(const GRASInfo*)’:
/home/lghizoni/Geant4/Gras/source/analysis/src/GRASActivationAnalysisModule.cc:127:73: error: cannot convert ‘std::map<CLHEP::Hep3Vector, CLHEP::Hep2Vector>*’ to ‘std::map<CLHEP::Hep3Vector, double>*’ in initialization
/home/lghizoni/Geant4/Gras/source/analysis/src/GRASActivationAnalysisModule.cc: In member function ‘virtual void GRASActivationAnalysisModule::PrintCSVFile(const GRASInfo*, SpenvisCSVCollection*)’:
/home/lghizoni/Geant4/Gras/source/analysis/src/GRASActivationAnalysisModule.cc:223:73: error: cannot convert ‘std::map<CLHEP::Hep3Vector, CLHEP::Hep2Vector>*’ to ‘std::map<CLHEP::Hep3Vector, double>*’ in initialization
In file included from /home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/G4PhysicalConstants.hh:27:0,
                 from /home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/globals.hh:70,
                 from /home/lghizoni/Geant4/Gras/source/analysis/include/GRASActivationAnalysisModule.hh:38,
                 from /home/lghizoni/Geant4/Gras/source/analysis/src/GRASActivationAnalysisModule.cc:35:
/home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/CLHEP/Units/PhysicalConstants.h: At global scope:
/home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/CLHEP/Units/PhysicalConstants.h:79:21: warning: ‘CLHEP::electron_charge’ defined but not used [-Wunused-variable]
In file included from /home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/Randomize.hh:32:0,
                 from /home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/G4SteppingManager.hh:62,
                 from /home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/G4TrackingManager.hh:56,
                 from /home/lghizoni/Geant4/Gras/source/global/include/GRASInfo.hh:42,
                 from /home/lghizoni/Geant4/Gras/source/analysis/src/GRASActivationAnalysisModule.cc:39:
/home/lghizoni/Geant4/geant4.9.6-install/include/Geant4/CLHEP/Random/Randomize.h:59:12: warning: ‘CLHEP::HepRandomGenActive’ defined but not used [-Wunused-variable]
make[2]: *** [CMakeFiles/gras_lib.dir/source/analysis/src/GRASActivationAnalysisModule.cc.o] Error 1
make[1]: *** [CMakeFiles/gras_lib.dir/all] Error 2
make: *** [all] Error 2

Can someone help me?? I just don't know what to fix.

Thanks a lot

Leonardo.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Problem building GRAS code   (Colin Paul Gloster - 24 May, 2013)
1 None: Re: Problem building GRAS code   (Leonardo Ghizoni - 24 May, 2013)
2 Idea: Re: Problem building GRAS code   (Vladimir Ivanchenko - 27 May, 2013)
 Add Message Add Message
to: "Problem building GRAS code"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]