2.2.  Building and Installing on Windows Platforms

Unpack the Geant4 source package, geant4.9.6.zip to a location of your choice. For illustration only, this guide will assume it's been unpacked in a directory C:\Users\Ben\Documents\geant4\, so that the Geant4 source package resides in the subdirectory

    C:\Users\Ben\Documents\geant4\geant4.9.6
  

We refer to this directory as the source directory.

Whilst CMake can be used from the Windows cmd program, we recommend using the CMake GUI for configuring the build. The steps required to use the CMake GUI and Visual Studio to build and install Geant4 are described below, and a slideshow of screenshots of the steps is provided.

The file and directory structure of the installation follows that of the Unix build, and is described in Section 3.1.