I have successfully installed the latest version of Geant4 on my Linux system. To verify the installation, I ran the example B1 (./exampleB1) and it executed without any errors or warnings. However, no GUI display appeared after running the command. How can I enable and view the GUI for Geant4 example B1?
_Geant4 Version: 11.2.1
_Operating System: Linux Mint 21.1
_Compiler/Version: gcc version 11.3.0
_CMake Version: 3.22.1
You have to build with graphics, i.e., add some “optional” parameters to your cmake build - Building and Installing from Source — Geant4 Installation Guide 11.2 documentation. To get a GUI, set GEANT4_USE_QT=ON. You have to install Qt, either from qt.io, or from something like homebrew. (Geant4 works best with Qt5 - we are still ironing out some glitches with Qt6.)