-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ible’ is not a member of ‘G4VisAttributes’ #27
Comments
Thanks for reporting the issue, and I think you might be the first to try edep-sim with 11.x. Unfortunately, it seems that geant didn't maintain backward compatibility. I'll look at a solution, but for now I think you need to use geant4.10.x |
Thanks, I am building 10.7 right now. |
Cool.
Major version upgrades tend to cause issues, and I haven't looked at
what's needed this time. Sometimes the problems are a little subtle
("Invisible" being removed isn't subtle!), so it needs to be "physics"
validated to make sure the basic behavior is the same.
Any patches you have to make it better are appreciated. Thanks.
On 5/11/22 7:44 AM, atanu wrote:
> you need to use geant4.10.x
Thanks, I am building 10.7 right now.
--
Clark McGrew ***@***.***>
Dept. of Physics and Astronomy tel: +(631)-632-8299
Stony Brook University fax: +(631)-632-8101
|
Hello, I have just had the same issue when compiling edep-sim (also installed GEANT4-v11.x): error: ‘Invisible’ is not a member of ‘G4VisAttributes’ I will try compile edep-sim having GEANT4-v10.x, but please let me know if you find a solution for this issue. |
using geant4 version v10.7.4. It is the last compatible with edepsim: ClarkMcGrew/edep-sim#27
Hi, while building with
edep-build doc
I am getting these errors.[ 18%] Built target edep-disp Scanning dependencies of target edepsim [ 19%] Building CXX object src/CMakeFiles/edepsim.dir/EDepSimArbEMField.cc.o [ 20%] Building CXX object src/CMakeFiles/edepsim.dir/EDepSimArbElecField.cc.o [ 21%] Building CXX object src/CMakeFiles/edepsim.dir/EDepSimArbMagField.cc.o [ 22%] Building CXX object src/CMakeFiles/edepsim.dir/EDepSimBuilder.cc.o /home/atanu/Software/EDEP-SIM/src/EDepSimBuilder.cc: In member function ‘G4VisAttributes EDepSim::Builder::GetColor(G4Material*, double)’: /home/atanu/Software/EDEP-SIM/src/EDepSimBuilder.cc:170:50: error: ‘Invisible’ is not a member of ‘G4VisAttributes’ 170 | if (fOpacity < -9.9) return G4VisAttributes::Invisible; | ^~~~~~~~~ /home/atanu/Software/EDEP-SIM/src/EDepSimBuilder.cc:172:49: error: ‘Invisible’ is not a member of ‘G4VisAttributes’ 172 | if (opacity < -9.9) return G4VisAttributes::Invisible; | ^~~~~~~~~ make[2]: *** [src/CMakeFiles/edepsim.dir/build.make:102: src/CMakeFiles/edepsim.dir/EDepSimBuilder.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:325: src/CMakeFiles/edepsim.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
System info:
OS: Linux Mint 20.3
cmake version: 3.16.3
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
ROOT Version: 6.26/02
Geant4 version: 11.0.1
CLHEP 2.4.5.1
The text was updated successfully, but these errors were encountered: