Created attachment 488 [details] Error I have a little problem with visualization of geometry in Geant4. I have installed QT and OpenGL both on windows, it still shows me errors. I have attached a snapshot for your reference. Can you please provide me any advice regarding that. ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer. /vis/verbose warnings Visualization verbosity changed to warnings (3)
Thankyou for submitting this bug report. To me, it doesn’t look like a bug. In fact, it looks like Geant4 has correctly caught an installation or run time problem. So let me check this with you... You attached the last few lines of the output. Earlier, it would have told you what graphics systems were available. If you ask for a viewer that is not available, for example “/vis/open OGL” when there is no OpenGL viewer available, it should show an error, and there would be no viewer available for subsequent vis commands, giving rise to the error messages you report. Please scan back in the output and see if there are any relevant messages. If it turns out to be like that, then please read again the installation instructions, in particular how to activate the OpenGL viewer (-DGEANT4_USE_OPENGL_WIN32=ON, I think).
Thank I did it. I get this warning. "CMake Warning (dev) in CMakeLists.txt: Policy CMP0020 is not set: Automatically link Qt executables to qtmain target on Windows. Run "cmake --help-policy CMP0020" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it." and the moment I run exempleB1.exe, it crashes. I tried to install it with OpenGL only and that too crashes.
The user has succeeded in building with Qt and OpenGL, so I will close this bug report. (There are now other issues, which we will try to sort out offline.)