Changes
Page history
win11 v11.2.1
authored
Feb 20, 2024
by
Igor Semeniouk
Show whitespace changes
Inline
Side-by-side
Windows-Installation/Win11-Installation.md
View page @
e8c17b69
...
...
@@ -76,7 +76,7 @@ https://xerces.apache.org/xerces-c/download.cgi
and then follow Build instruction from this site:
https://xerces.apache.org/xerces-c/build-3.html
<- 3.2.4
https://xerces.apache.org/xerces-c/build-3.html
For compilation you can use _x64 Native Tools Command Prompt_ provided by
Visual Studio.
...
...
@@ -84,11 +84,11 @@ Visual Studio.
I use following commands:
```
7z x xerces-c-3.2.
3
.zip
7z x xerces-c-3.2.
5
.zip
mkdir xerces-c-build
cd xerces-c-build
cmake -DCMAKE_INSTALL_PREFIX=D:\Xerces-C ..\xerces-c-3.2.
3
cmake -DCMAKE_INSTALL_PREFIX=D:\Xerces-C ..\xerces-c-3.2.
5
cmake --build . --config RelWithDebInfo --parallel
ctest -V -C RelWithDebInfo -j 4
cmake --build . --config RelWithDebInfo --parallel --target install
...
...
@@ -182,13 +182,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
cd geant4
git checkout v11.
1
.1
git checkout v11.
2
.1
mkdir g11.
1
.1-build
cd ..\g11.
1
.1-build
mkdir g11.
2
.1-build
cd ..\g11.
2
.1-build
cmake -DCMAKE_PREFIX_PATH=D:\Xerces-C ^
-DCMAKE_INSTALL_PREFIX=D:\Geant4\11.
1
.1 ^
-DCMAKE_INSTALL_PREFIX=D:\Geant4\11.
2
.1 ^
-DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_WIN32=ON ^
-DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON ..\geant4
...
...
@@ -226,17 +226,17 @@ You will see the output like this:
```
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.
19045
.
-- The C compiler identification is MSVC 19.3
5
.3
2217.1
-- The CXX compiler identification is MSVC 19.3
5
.3
2217.1
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.
22621
.
-- The C compiler identification is MSVC 19.3
9
.3
3519.0
-- The CXX compiler identification is MSVC 19.3
9
.3
3519.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.3
5
.3
2215
/bin/Hostx64/x64/cl.exe - skipped
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.3
9
.3
3519
/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.3
5
.3
2215
/bin/Hostx64/x64/cl.exe - skipped
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.3
9
.3
3519
/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
...
...
@@ -246,18 +246,19 @@ You will see the output like this:
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found XercesC: D:/Xerces-C/lib/xerces-c_3.lib (found suitable version "3.2.
3
", minimum required is "3.2.
3
")
-- Found XercesC: D:/Xerces-C/lib/xerces-c_3.lib (found suitable version "3.2.
5
", minimum required is "3.2.
5
")
-- Found OpenGL: opengl32
-- Found Geant4: D:/Geant4/11.
1
.1/lib/cmake/Geant4/Geant4Config.cmake (found version "11.
1
.1")
-- Configuring done
-- Generating done
-- Build files have been written to: D:/workspace/
GEANT4
/B1-
b
uild
-- Found Geant4: D:/Geant4/11.
2
.1/lib/cmake/Geant4/Geant4Config.cmake (found version "11.
2
.1")
-- Configuring done
(11.6s)
-- Generating done
(0.3s)
-- Build files have been written to: D:/workspace/
installg4/install/MSVC
/B1-
B
uild
```
Now we can build and run example.
The build step:
```
cmake --build . --config RelWithDebInfo --parallel
4
```
```
cmake --build . --config RelWithDebInfo --parallel
8
```
To run exaple use command:
...
...
@@ -268,7 +269,7 @@ You will see the output like below:
```
**************************************************************
Geant4 version Name: geant4-11-0
1-ref
-0
4
[MT] (
30-April
-202
3
)
Geant4 version Name: geant4-11-0
2-patch
-0
1
[MT] (
16-February
-202
4
)
<
<
in
Multi-threaded
mode
>
>
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
...
...
@@ -276,6 +277,7 @@ You will see the output like below:
: NIM A 835 (2016), 186-225
WWW : http://geant4.org/
**************************************************************
...
<snip>
...
...
...
@@ -312,7 +314,7 @@ Example of root v6.26/02.
Setup root environment if not yet done:
```
D:
\
w
orkspace>call d:
\r
oot
\b
in
\t
hisroot.bat
workspace>
call d:
\r
oot
\b
in
\t
hisroot.bat
```
Start the ROOT interactive session:
...
...
@@ -320,12 +322,12 @@ Start the ROOT interactive session:
```
D:
\w
orkspace>root
------------------------------------------------------------------
| Welcome to ROOT 6.
26
/0
2
https://root.cern |
| (c) 1995-202
1
, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on
Apr 12
202
2
,
16:28:03
|
| From
tags/v6-26-02@v6-26-02
|
| With MSVC 19.3
1
.31
104
.0 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'
|
| Welcome to ROOT 6.
30
/0
4
https://root.cern |
| (c) 1995-202
4
, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on
Jan 31
202
4
,
09:17:16
|
| From
heads/master@tags/v6-30-04
|
| With MSVC 19.3
2
.31
332
.0 |
| Try '.help'
/'.?'
, '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0]
...
...
@@ -370,7 +372,3 @@ solution was tested.
- use busybox installed with his aliases, i use `scoop install busybox`
to install the busybox.
- The md5sum command from busybox not support *--tag* option. To allow
geant4-config --install-datasets work correctly you need to install
openssl for windows f.e. `scoop install openssl`.