View on GitHub

Geant4 Zero to Hero

The Definitive Guide for End Users

YouTube Get Geant4

Geant4 Installation on Mac

The easiest way to install Geant4 on Mac is to compile Geant4’s source code using CMake GUI, which can be installed using Homebrew:

brew install --cask cmake

Since version 11.3.0, Geant4 can be compiled with Qt 6 instead of 5. Qt installed through brew install qt is version 6. Because CMake can find Qt 6 installed through Homebrew automatically, I recommand Mac users to turn on GEANT4_USE_QT_QT6, which is off by default for the moment.

If you encounter any compilation error related to zlib or expat, enable GEANT4_USE_SYSTEM_EXPAT, and GEANT4_USE_SYSTEM_ZLIB. There is no need to install expat and zlib using Homebrew because they are already included in Xcode, which is automatically installed when you install Homebrew.