I’ve still fairly new to Geant4 overall, only a few months of experience with version 10.5. I have been and am working on Geant4 with a Ubuntu system. When I was first trying to compile I had a few issues with getting visualization to work, but after many attempts I had Geant4 10.5 with OGL and Dawnfile. Before 10.6 came out I wrote myself notes on compilation, hoping the notes would help me compile correctly.
The settings I had on for cmake were:
I also was trying “-DGeant4_BUILD_MULTITHREADED=ON” but stopped since I wasn’t confident it was needed.
Before attempting to compile 10.6 I compressed my old Geant4 (10.5.01) and deleted the none compressed files. So I could go back to a working version of Geant4 but I need the new G4ParticleXS.2.1 file for certain low/medium energy proton simulations.
After 10.6 released I have NOT been able to compile and run examples without issues.
I’m having issues with libG4OpenGL.so but no other visualization issues.
When running example B1, or any example using OGL, the example crashes and prints:
“./exampleB1 symbol lookup error: /home/jason/Geant4/geant4-install/lib/libG4OpenGL.so: undefined symbol: _ZTI6G4UIQt”
It was referencing "/usr/lib/x86_64-linux-gnu/libOpenGL.so " before I tried to mess with that file and it started referencing the file in my install directory. I tried to put the files back to the way they were in /usr/ but it hasn’t been referenced since I messed with them.
When swapping the libG4OpenGL.so file, from the one created by cake to file from the pre-compiled library provided by CERN on the Geant4 site, the program prints:
“./exampleB1: symbol lookup error: ./exampleB1: undefined symbol: _ZN19G4OpenGLImmediateQtC1Ev”
I haven’t been able to find anything to do with those symbols online, and I’ve only found very little on symbol lookup error/undefined symbol.
I’m fairly sure I downloaded and installed OGL correctly, because I used a basic example outside of Geant4 that worked. Also I checked “glxinfo | grep direct” and it output “Yes”.
But when I run an modified version of TestEm7 that uses Dawnfile visualization, it runs perfectly fine but it does not list OGL as an available graphics system. I’m not sure exactly why my TestEm7 works, because when I attempt to change the visualization of other example to be Dawnfile from OGL it still crashes.
I think there is some issue with the linking of my library in Geant4.
I’ve tried deleting and recompiling Geant4 many times now and with different settings nothing I’ve tried has worked so far.
There could be some traces of my old Geant4-10.5.01 causing problems but I tried to delete the files I could.
Any help would be greatly appreciated, I’ve been struggling with this since 10.6 released!