... | @@ -159,9 +159,9 @@ Visit http://root.cern.ch for more information about ROOT. |
... | @@ -159,9 +159,9 @@ Visit http://root.cern.ch for more information about ROOT. |
|
|
|
|
|
### Installing Geant4
|
|
### Installing Geant4
|
|
|
|
|
|
You can download geant v11.3.1 installer ( or .zip file ) for Windows 10 , 64 bit compiled using Visual Studio 2022 from geant4 download page:
|
|
You can download geant v11.3.2 installer ( or .zip file ) for Windows 10 , 64 bit compiled using Visual Studio 2022 from geant4 download page:
|
|
|
|
|
|
https://geant4.web.cern.ch/download/11.3.1.html
|
|
https://geant4.web.cern.ch/download/11.3.2.html
|
|
|
|
|
|
### Build Geant4 locally
|
|
### Build Geant4 locally
|
|
|
|
|
... | @@ -169,7 +169,7 @@ Please, follow Geant4 "Installation Guide" to build geant4 |
... | @@ -169,7 +169,7 @@ Please, follow Geant4 "Installation Guide" to build geant4 |
|
|
|
|
|
https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/index.html
|
|
https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/index.html
|
|
|
|
|
|
in project install/MSVS subdirectory you can found build-geant4.bat with command i use to build geant4. The option -DGEANT4_BUILD_MULTITHREADED=ON default for geant4 v11.
|
|
in project install/MSVS subdirectory you can found build-geant4.bat with command i use to build geant4.
|
|
|
|
|
|
You need setup compiler ant qt5 environment before build geant4.
|
|
You need setup compiler ant qt5 environment before build geant4.
|
|
You can use script *setup_env.bat* from `setup\MSVC` to setup compiler and qt in DOS Prompt.
|
|
You can use script *setup_env.bat* from `setup\MSVC` to setup compiler and qt in DOS Prompt.
|
... | @@ -178,13 +178,13 @@ You can use script *setup_env.bat* from `setup\MSVC` to setup compiler and qt in |
... | @@ -178,13 +178,13 @@ You can use script *setup_env.bat* from `setup\MSVC` to setup compiler and qt in |
|
```
|
|
```
|
|
git clone ssh://git@gitlab.cern.ch:7999/geant4/geant4.git
|
|
git clone ssh://git@gitlab.cern.ch:7999/geant4/geant4.git
|
|
cd geant4
|
|
cd geant4
|
|
git checkout v11.3.1
|
|
git checkout v11.3.2
|
|
|
|
|
|
mkdir g11.3.1-build
|
|
mkdir g11.3.2-build
|
|
cd ..\g11.3.1-build
|
|
cd ..\g11.3.2-build
|
|
|
|
|
|
cmake -DCMAKE_PREFIX_PATH=D:\Xerces-C ^
|
|
cmake -DCMAKE_PREFIX_PATH=D:\Xerces-C ^
|
|
-DCMAKE_INSTALL_PREFIX=D:\Geant4\11.3.1 ^
|
|
-DCMAKE_INSTALL_PREFIX=D:\Geant4\11.3.2 ^
|
|
-DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_WIN32=ON ^
|
|
-DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_WIN32=ON ^
|
|
-DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON ..\geant4
|
|
-DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON ..\geant4
|
|
|
|
|
... | @@ -212,7 +212,7 @@ setup for compiler and Qt5 in dos prompt, usage: |
... | @@ -212,7 +212,7 @@ setup for compiler and Qt5 in dos prompt, usage: |
|
Setup Geant4 environment:
|
|
Setup Geant4 environment:
|
|
|
|
|
|
```
|
|
```
|
|
call d:\Geant4\11.3.1\bin\geant4.bat
|
|
call d:\Geant4\11.3.2\bin\geant4.bat
|
|
```
|
|
```
|
|
|
|
|
|
cmake search path for Xerces-C must set or give to cmake as -D parameter
|
|
cmake search path for Xerces-C must set or give to cmake as -D parameter
|
... | @@ -226,7 +226,7 @@ Try to compile B1 example |
... | @@ -226,7 +226,7 @@ Try to compile B1 example |
|
```
|
|
```
|
|
mkdir B1-Build
|
|
mkdir B1-Build
|
|
cd B1-Build
|
|
cd B1-Build
|
|
cmake d:\Geant4\11.3.1\share\Geant4\examples\basic\B1
|
|
cmake d:\Geant4\11.3.2\share\Geant4\examples\basic\B1
|
|
```
|
|
```
|
|
|
|
|
|
You will see the output like this:
|
|
You will see the output like this:
|
... | @@ -255,7 +255,7 @@ You will see the output like this: |
... | @@ -255,7 +255,7 @@ You will see the output like this: |
|
-- Found Threads: TRUE
|
|
-- Found Threads: TRUE
|
|
-- Found XercesC: D:/Xerces-C/lib/xerces-c_3.lib (found suitable version "3.3.0", minimum required is "3.3.0")
|
|
-- Found XercesC: D:/Xerces-C/lib/xerces-c_3.lib (found suitable version "3.3.0", minimum required is "3.3.0")
|
|
-- Found OpenGL: opengl32
|
|
-- Found OpenGL: opengl32
|
|
-- Found Geant4: D:/Geant4/11.3.1/lib/cmake/Geant4/Geant4Config.cmake (found version "11.3.1")
|
|
-- Found Geant4: D:/Geant4/11.3.2/lib/cmake/Geant4/Geant4Config.cmake (found version "11.3.2")
|
|
-- Configuring done (14.3s)
|
|
-- Configuring done (14.3s)
|
|
-- Generating done (0.1s)
|
|
-- Generating done (0.1s)
|
|
-- Build files have been written to: ... /B1-build
|
|
-- Build files have been written to: ... /B1-build
|
... | @@ -270,7 +270,7 @@ cmake --build . --config RelWithDebInfo --parallel 8 |
... | @@ -270,7 +270,7 @@ cmake --build . --config RelWithDebInfo --parallel 8 |
|
Version MSBuild 17.13.19+0d9f5a35a pour .NET Framework
|
|
Version MSBuild 17.13.19+0d9f5a35a pour .NET Framework
|
|
|
|
|
|
1>Checking Build System
|
|
1>Checking Build System
|
|
Building Custom Rule D:/Geant4/11.3.1/share/Geant4/examples/basic/B1/CMakeLists.txt
|
|
Building Custom Rule D:/Geant4/11.3.2/share/Geant4/examples/basic/B1/CMakeLists.txt
|
|
exampleB1.cc
|
|
exampleB1.cc
|
|
ActionInitialization.cc
|
|
ActionInitialization.cc
|
|
DetectorConstruction.cc
|
|
DetectorConstruction.cc
|
... | @@ -280,7 +280,7 @@ Version MSBuild 17.13.19+0d9f5a35a pour .NET Framework |
... | @@ -280,7 +280,7 @@ Version MSBuild 17.13.19+0d9f5a35a pour .NET Framework |
|
SteppingAction.cc
|
|
SteppingAction.cc
|
|
Génération de code en cours...
|
|
Génération de code en cours...
|
|
exampleB1.vcxproj -> D:\workspace\GEANT4\installg4\install\MSVC\B1-build\RelWithDebInfo\exampleB1.exe
|
|
exampleB1.vcxproj -> D:\workspace\GEANT4\installg4\install\MSVC\B1-build\RelWithDebInfo\exampleB1.exe
|
|
Building Custom Rule D:/Geant4/11.3.1/share/Geant4/examples/basic/B1/CMakeLists.txt
|
|
Building Custom Rule D:/Geant4/11.3.2/share/Geant4/examples/basic/B1/CMakeLists.txt
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |