VisManager cant initializ OGL

Hi,
I have Installed geant using the required syntax for opengl and qt, but when I run any example it cant find OGL, only the basic visualization drivers.
When I type “geant4-config -h” I can see that the qt and opengl features are set to [yes].

Any idea how to solve this problem?

Thanks.

Short answer, no. The procedure you are following seems OK. Perhaps you could tell us what you mean, exactly, by “the required syntax for opengl and qt”, just so we know.

All I can suggest is that you try rebuilding all over again in a clean build directory for G4 libraries and another clean build directory for your example/application. Make sure you don’t have any old builds around that could be confusing.

Let us know how you get on.

Hello,

I had similar issues. As per Dr. Allison it was generally resolved by reinstalling it but also before that, make sure you have all the packages of QT required by geant4 by doing something like apt-get install qt5*-dev or apt install qt4-default. Use yum install if using centos.

Sincerely,
Sanchit Sharma