Get [MSYS2](https://www.msys2.org) and install it where you have read/write privileges (e.g. C:\msys64).
Open a MSYS terminal and perform basic configuration
```sh
pacman -Syu
```
We asked to do so, close the terminal (ignore the warning saying that a process is running), and open a new one
```sh
pacman -Su
```
**Get pre-compiled packages**
Open a MSYS terminal
```sh
pacman -S make
pacman -S mingw-w64-x86_64-tools-git
pacman -S mingw-w64-x86_64-gcc-fortran
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-swig
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-eigen3
pacman -S mingw-w64-x86_64-intel-tbb
pacman -S mingw-w64-x86_64-openblas
# python 3
pacman -S mingw-w64-x86_64-vtk
pacman -S mingw-w64-x86_64-python3
pacman -S mingw-w64-x86_64-python3-numpy
pacman -S mingw-w64-x86_64-python3-scipy
pacman -S mingw-w64-x86_64-python3-matplotlib
pacman -S mingw-w64-x86_64-python3-pyqt5
# optional (needed to build the documentation)
[pacman -S mingw-w64-x86_64-doxygen]
[pacman -S mingw-w64-x86_64-graphviz]
```
*Notes*:
- A python binding for vtk is currently broken (vtkIOMySQL). To disable it, comment the related line in path/to/msys/mingw64/lib/python3.8/site-packages/vtkmodules/all.py (around line 86: ```from .vtkIOMySQL import *```)
- nb lpx : 11/2020 : the upper problem seems to have been solved
**Compile packages**
1) MUMPS (optional)
Get [MUMPS with CMake](https://gitlab.uliege.be/am-dept/MN2L/mumps-4.10.0).
Open a MSYS-MINGW64 terminal
```sh
mkdir build &&cd build
export MINGW_LOC=/path/to/msys/mingw
cmake -C ../Cmake/msys.cmake ..
make [-j4]install
```
2) MS-MPI (optional)
Install [MSMPI](https://www.microsoft.com/en-us/download/details.aspx?id=100305) and the related SDK and copy the header
Get [git for windows](https://git-scm.com/download/win), or alternatively, install git using pacman (`pacman -S mingw-w64-x86_64-git`), then clone DART