Path: blob/devel/compilation_instructions/Windows-msys2.md
5220 views
Build Elmer on Windows using MSYS2
If you'd like to build with MPI, install the latest version of MSMPI: https://learn.microsoft.com/en-us/message-passing-interface/microsoft-mpi-release-notes
Install MSYS2 from https://www.msys2.org/
Open the MSYS2
bashvia the "MSYS2 UCRT64" (or "MSYS2 MINGW64") shortcut.Download the latest MSYS2 package databases and upgrade installed packages by running
pacman -Syutwice.Install dependencies of Elmer from MSYS2:
If you'd like to build with VTK, also install the following packages:
If you'd like to build with MPI, also install the following package and set the environment variable
MSMPI_BINto the path where you installed MSMPI:
Get the Elmer source code:
Create a build directory and a directory for the installation:
Configure using CMake (depending on your choices change the respective flags to
-DWITH_MPI=OFFand/or-DWITH_VTK=OFF:
Still inside the same directory, build the source code and install at the previously created prefix:
Create a batch file
ElmerGUI.batwith the following content adapting the values of the variablesMSY2_ENV_BINandELMERFEM_INST_BINas needed:
To open ElmerGUI, double-click the batch file.
Install Elmer on Windows using MSYS2
Alternatively, you can install the version of ElmerFEM that is distributed by MSYS2. This version might be (significantly) older than the latest head of the development repository (see above). To do that:
Install MSYS2 from https://www.msys2.org/
Open the MSYS2
bashvia the "MSYS2 UCRT64" shortcut.Download latest MSYS2 package databases and upgrade installed packages by running
pacman -Syutwice.Install ElmerFEM from MSYS2:
To use ElmerFEM, open the MSYS2
bashvia the "MSYS2 UCRT64" shortcut. Then, start the GUI using the following command: