Skip to content
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

Open
quantatanu opened this issue May 11, 2022 · 4 comments
Open

ible’ is not a member of ‘G4VisAttributes’ #27

quantatanu opened this issue May 11, 2022 · 4 comments

Comments

@quantatanu
Copy link

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

@ClarkMcGrew
Copy link
Owner

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

@quantatanu
Copy link
Author

you need to use geant4.10.x

Thanks, I am building 10.7 right now.

@ClarkMcGrew
Copy link
Owner

ClarkMcGrew commented May 11, 2022 via email

@gvittis
Copy link

gvittis commented May 19, 2022

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’
170 | if (fOpacity < -9.9) return G4VisAttributes::Invisible;

I will try compile edep-sim having GEANT4-v10.x, but please let me know if you find a solution for this issue.
Thank you!

mt82 added a commit to DUNE/sandreco that referenced this issue Jul 8, 2024
using geant4 version v10.7.4. It is the last compatible with edepsim: ClarkMcGrew/edep-sim#27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants