Installation Guide of Geant On Windows
Installation Guide of Geant On Windows
Installation Guide of Geant On Windows
5 for
Windows
A step-by-step guide for Windows XP/Vista/7
using cmake and Visual C++ 2009 / 2010
Daniel Brandt
6 April 2012
Software requirements
Operating system: Windows XP, Windows Vista or Windows 7
Compiler: Visual C++ (Express) 2009, Visual C++ (Express) 2010
Build tools: CMake (v2.8 or higher STRONGLY recommended)
Geant4 source code: v9.5.0 or newer (recommended at time of writing v9.5-p01)
If you have one of the listed operating systems but dot not have the required build
software, follow the Preparations instructions in Step 1. Otherwise skip ahead to Step 2.
All screenshots shown were created using Visual C++ Express 2010, CMake 2.8.7
Step 1: Preparations
Obtain Visual C++ compiler
The Express editions of Visual C++ are available from Microsoft free of charge. Download
and install Visual C++ 2010 Express. At the time of writing, the installer is available at:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
Click on Install now and follow the instructions.
Obtain CMake build tool
The CMake build tool is available from www.cmake.org.
From the tabs along the top, select Download. Scroll down to Binary Distributions and select
Windows (Win32 Installer) from the list of available platforms. Execute the installer.
Obtain Geant4 source code
Go to the Geant4 collaboration download site: http://geant4.cern.ch/support/download.shtml
Chose ZIP format. Ones the files is downloaded (~40 Mb), right click the files and chose
extract files. Specify the directory to which to extract the files. For example purposes only,
we will be using
C:\Users\testUser\Documents\geant4
We will refer to this directory as the Geant4 source directory
Below Browse Source... click Browse Build..., and browse to the location you wish to create
the build solution. You can create a new directory in the build path dialog. We are using
C:/Users/testUser/Documents/geant4/gean4.9.5-build
Click finish.
At this stage CMake will prepare and check your build environment. If you see a couple of
warning messages, dont worry. Proceed to the next step.
10
11
12