After completing the installation setup. While testing for correct installation, I’m getting this error after completing the building and compilation of exampleB1. I’m not able to resolve this issue. Please help me with this.
Details of software :
_Geant4 Version: v11.1.0
_Operating System:_Windows 10 Compiler/Version: Visual Studio 2019
Available UI session types: [ Win32, csh ](along with a pop up window specifying an abort() action)
Is there any other information in the terminal output or pop up window indicating the cause to the error? All I can think is that the data libraries are not present or found correctly (see the Post Install Setup section of the Install Guide), so that may be worth checking.
Thank you @bmorgan for taking the time to help me with this.
I’ve rechecked for all the data libraries and added all the required environment variables. Though I haven’t installed OpenGL yet. Is it necessary to install it? I was following a YouTube tutorial in which the examples run even without OpenGL.
The examples will run, but not the visualization. OpenGL is the “engine” that draws the pictures for you. So you can run all of the examples and get output data files, log files, etc., but not pretty pictures.
Just to be clear, there are two reconfigure+recompile operations required here:
Reconfigure, recompile and reinstall the Geant4 libraries with cmake -DGEANT4_USE_OPENGL_WIN32=ON ., then cmake --build . --config Release and reinstall.
Reconfigure and recompile the exampleB1application against the reconfigured and reinstalled Geant4 libraries from step 1.
If you’ve done both of those and are still not seeing “OpenGL” listed in
Available UI session types: [ Win32, csh ]
then something else is going on and then I’d definitely recommend starting completely from scratch. Otherwise, please post the complete output from the output of exampleB1, and what the “abort()” action is reporting.
Thanks for the pop-up capture! Could you also post what’s printed to the terminal when you try running the application please?
There’s no requirement to have any optional visualisation driver installed. The examples generally assume that at least one OpenGL based driver is installed but it’s up to the user which one. I would generally recommend the minimal Win32 GL as has been mentioned here to get started as this can be built with nothing more than standard Visual Studio which is required anyway.