Unless a native Windows build is strictly required, we recommend using Windows Subsystem for Linux (WSL2).
First, ensure that:
1. virtualization is turned on in BIOS,
2. _Hyper-V_ and _Virtual Machine Platform_ are turned on in Windows features,
3. _Memory integrity_ is turned on in Windows Security (Core isolation).
When all the requirements are met, WSL can be installed via a console
```bat
wsl.exe--install [Distro]
```
where `Distro` is the name of the Linux distribution.
The install steps are then the same as those described in [Build/Linux](https://gitlab.uliege.be/am-dept/sdpm/-/wikis/build_linux).
## Windows
## Windows
The following instructions have been tested on windows 10 64bits, in Release and Debug configurations, and with the following packages versions: Visual Studio 2022, CMake 3.23, Python 3.8.7, SWIG 4.0.2, Eigen 3.3.9, Gmsh 4.8.4.
The following instructions have been tested on windows 10 64bits, in Release and Debug configurations, and with the following packages versions: Visual Studio 2022, CMake 3.23, Python 3.8.7, SWIG 4.0.2, Eigen 3.3.9, Gmsh 4.8.4.
...
@@ -15,7 +30,7 @@ Install CMake from https://cmake.org/, and add the executable to the Path enviro
...
@@ -15,7 +30,7 @@ Install CMake from https://cmake.org/, and add the executable to the Path enviro
Install Python from https://www.python.org/, and add the executable to the Path environment variable (e.g. C:\Program Files\Python). Install python packages using pip
Install Python from https://www.python.org/, and add the executable to the Path environment variable (e.g. C:\Program Files\Python). Install python packages using pip
```bat
```bat
python-m pipinstallnumpy
python-m pipinstallnumpy
python-m pipinstallmatplotlib
python-m pipinstallscipy
python-m pipinstallvtk
python-m pipinstallvtk
```
```
...
@@ -28,11 +43,15 @@ Download Eigen from https://eigen.tuxfamily.org/index.php?title=Main_Page, unzip
...
@@ -28,11 +43,15 @@ Download Eigen from https://eigen.tuxfamily.org/index.php?title=Main_Page, unzip
7. Gmsh
7. Gmsh
Download gmsh from https://gmsh.info/, unzip it to the location of your choice, and add the executable to the Path environment variable (e.g. C:\Program Files\gmsh).
Download gmsh from https://gmsh.info/, unzip it to the location of your choice, and add the executable to the Path environment variable (e.g. C:\Program Files\gmsh).
8. CoDiPack
Download CoDiPack from https://github.com/SciCompKL/CoDiPack, unzip it to the location of your choice (e.g. C:\Program Files\codipack).