:warning: _**Pre-built binaries available here: [Build](build).**_
:warning: _**Pre-built binaries available here: [Build](build).**_
:warning: _**This page is not maintained anymore, prefer using [WSL](build_win_wsl).**_
:warning: _**This page is not maintained anymore, prefer using [WSL](build_win_wsl).**_
**Install MSYS2**
**Install MSYS2**
Get [MSYS2](https://www.msys2.org) and install it where you have read/write privileges (e.g. C:\msys64).
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
Open a MSYS terminal and perform basic configuration
```sh
```sh
pacman -Syu
pacman -Syu
```
```
We asked to do so, close the terminal (ignore the warning saying that a process is running), and open a new one
When asked to do so, close the terminal (ignore the warning saying that a process is running), and open a new one
```sh
```sh
pacman -Su
pacman -Su
```
```
**Get pre-compiled packages**
**Get pre-compiled packages**
Open a MSYS terminal
Open a MSYS terminal
```sh
```sh
pacman -S make
pacman -S make
pacman -S mingw-w64-x86_64-tools-git
pacman -S mingw-w64-x86_64-tools-git
pacman -S mingw-w64-x86_64-gcc-fortran
pacman -S mingw-w64-x86_64-gcc-fortran
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-swig
pacman -S mingw-w64-x86_64-swig
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-eigen3
pacman -S mingw-w64-x86_64-eigen3
pacman -S mingw-w64-x86_64-intel-tbb
pacman -S mingw-w64-x86_64-intel-tbb
pacman -S mingw-w64-x86_64-openblas
pacman -S mingw-w64-x86_64-openblas
# python 3
# python 3
pacman -S mingw-w64-x86_64-vtk
pacman -S mingw-w64-x86_64-vtk
pacman -S mingw-w64-x86_64-python3
pacman -S mingw-w64-x86_64-python3
pacman -S mingw-w64-x86_64-python3-numpy
pacman -S mingw-w64-x86_64-python3-numpy
pacman -S mingw-w64-x86_64-python3-scipy
pacman -S mingw-w64-x86_64-python3-scipy
pacman -S mingw-w64-x86_64-python3-matplotlib
pacman -S mingw-w64-x86_64-python3-matplotlib
# optional (needed to build the documentation)
# optional (needed to build the documentation)
[pacman -S mingw-w64-x86_64-doxygen]
[pacman -S mingw-w64-x86_64-doxygen]
[pacman -S mingw-w64-x86_64-graphviz]
[pacman -S mingw-w64-x86_64-graphviz]
```
```
*Notes*:
*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 *```)
- 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
- nb lpx : 11/2020 : the upper problem seems to have been solved
**Compile packages**
**Compile packages**
1) MUMPS (optional)
1) MUMPS (optional)
Get [MUMPS with CMake](https://gitlab.uliege.be/am-dept/MN2L/mumps-4.10.0).
Get [MUMPS with CMake](https://gitlab.uliege.be/am-dept/MN2L/mumps-4.10.0).
Open a MSYS-MINGW64 terminal
Open a MSYS-MINGW64 terminal
```sh
```sh
mkdir build &&cd build
mkdir build &&cd build
export MINGW_LOC=/path/to/msys/mingw
export MINGW_LOC=/path/to/msys/mingw
cmake -C ../Cmake/msys.cmake ..
cmake -C ../Cmake/msys.cmake ..
make [-j4]install
make [-j4]install
```
```
2) MS-MPI (optional)
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
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
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