Hi All,
I am having issues using OpenGL for interactive visualization of detector geometry. I have no issues using RayTracer, DAWNFILE, etc., but I am not able to use any interactive GUIs (I would like to use OGLIX).
In addition to those directions, I have ensured that I have the environment variables G4VIS_BUILD_OPENGLX_DRIVER and G4_VIS_USE_OPENGLX set correctly during my build. Despite this, I don’t think the OpenGL visualization driver is getting built properly and it is definitely not accessible from with Geant.
I am able to see GUIs from other programs (for example, ROOT), so I believe this is an issue with the way Geant is built on my system or a problem with one of the drivers.
I would really appreciate any suggestions or help you all could provide!
I rebuilt from scratch, and this did not solve the issue.
I checked with the system manager, and OpenGL is installed on the server.
I added find_package(OpenGL REQUIRED)
to the main CMakeLists.txt file and it finds it ok. Perhaps there is something else I need to add to this file?
I am using conda enviornment manager, so I the "#include " directive was searching by default only within my conda enviornment. I added a link to the system GL directory inside by conda directory, and this solved the issue.
Actually, it seems like OGLIX is still not listed in the candidate list for visualization, despite building with the -DGEANT4_USE_OPENGL_X11=ON option, and having no errors building or installing.