Skip to content

Commit 8c97127

Browse files
Merge pull request #12893 from KratosMultiphysics/update-mingw-related-stuff
[Install] Update documentation related with MinGW
2 parents c470932 + 22c9229 commit 8c97127

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

INSTALL.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
- [Specific Application Dependencies](#specific-application-dependencies)
77
- [Basic Configuration](#basic-configuration)
88
- [Configuration scripts examples](#configuration-scripts-examples)
9-
- [Linux/WSL](#gnulinux)
9+
- [GNU/Linux](#gnulinux)
1010
- [Windows](#windows)
1111
- [Visual Studio](#visual-studio)
1212
- [Windows Visual Studio compilation configuration](#windows-visual-studio-compilation-configuration)
13-
- [MinGW](#mingw)
13+
- [MinGW](#mingw)
1414
- [MacOS](#macos)
1515
- [Adding Applications](#adding-applications)
1616
- [Post Compilation](#post-compilation)
@@ -59,7 +59,7 @@ git clone https://github.com/KratosMultiphysics/Kratos Kratos
5959

6060
Additionaly, Visual Studio is required to compile in *Windows*.
6161

62-
- #### Linux/WSL installation
62+
- #### GNU/Linux-WSL installation
6363

6464
The command below will install all the packages needed.
6565

@@ -106,13 +106,13 @@ Additionaly, Visual Studio is required to compile in *Windows*.
106106
Extract boost, and note the path as it will be needed in the configure stage to set the environmental variable `BOOST_ROOT`.
107107
108108
- #### MinGW
109-
MingGw compilation details are hidden by default to avoid confusion, please click the button below to show them.
109+
*MingGw* compilation details are hidden by default to avoid confusion, please click the button below to show them.
110110
<details>
111111
<summary>Show MinGW compilation details</summary>
112112
113113
*MinGW* means minimal GNU for *Windows*. There are different manners of installing, the simplest one using *MSYS2*.
114114
115-
- MSYS2
115+
- *MSYS2*
116116
117117
First, we download *MSYS2* in the following [link](https://www.msys2.org/). This will install *MinGW*, which allows to easiy install packages *a la* Arch-Linux (Pacman package manager). We install it, and with it the first thing we do is to update as follows ([in the *MSYS2* bash](https://www.msys2.org/docs/terminals/)):
118118
![](https://www.msys2.org/docs/mintty.png) ![](https://www.msys2.org/docs/launchers.png)
@@ -141,7 +141,7 @@ Additionaly, Visual Studio is required to compile in *Windows*.
141141
You will need a series of packages with some *Kratos* dependencies. These include the compilers (*GCC*,*Clang/LLVM*), *CMake*, *Blas and Lapack* libraries and the *OpenMP* support. The command below will install all the packages needed. The command below will install all the packages needed.
142142
143143
```Shell
144-
pacman -S mingw64/mingw-w64-x86_64-lapack mingw64/mingw-w64-x86_64-openblas mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-clang mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-make mingw64/mingw-w64-x86_64-openmp mingw64/mingw-w64-x86_64-dlfcn
144+
pacman -S mingw64/mingw-w64-x86_64-lapack mingw64/mingw-w64-x86_64-openblas mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-clang mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-make mingw64/mingw-w64-x86_64-openmp mingw64/mingw-w64-x86_64-dlfcn mingw64/mingw-w64-x86_64-llvm-openmp
145145
```
146146
147147
- Python
@@ -162,15 +162,17 @@ Additionaly, Visual Studio is required to compile in *Windows*.
162162

163163
##### Using UCRT64
164164

165-
UCRT (Universal C Runtime) is a newer version which is also used by Microsoft Visual Studio by default, see https://www.msys2.org/docs/environments/. It should work and behave as if the code was compiled with MSVC.
165+
**⚠️NOTE:** Right now **UCRT64** is giving linking issues and therefore is not recommended to compile *Kratos*.
166166

167-
- Better compatibility with MSVC, both at build time and at run time.
168-
- It only ships by default on Windows 10 and for older versions you have to provide it yourself or depend on the user having it installed.
167+
**UCRT** (*Universal C Runtime*) is a newer version which is also used by Microsoft Visual Studio by default, see [*MSYS2*](https://www.msys2.org/docs/environments/). It should work and behave as if the code was compiled with **MSVC**.
169168

170-
If using UCRT64 the dependencies will be like:
169+
- Better compatibility with **MSVC**, both at build time and at run time.
170+
- It only ships by default on *Windows 10* and for older versions you have to provide it yourself or depend on the user having it installed.
171+
172+
If using **UCRT64** the dependencies will be like:
171173

172174
```Shell
173-
pacman -S ucrt64/mingw-w64-ucrt-x86_64-lapack ucrt64/mingw-w64-ucrt-x86_64-openblas ucrt64/mingw-w64-ucrt-x86_64-cmake ucrt64/mingw-w64-ucrt-x86_64-clang ucrt64/mingw-w64-ucrt-x86_64-gcc ucrt64/mingw-w64-ucrt-x86_64-gcc-fortran mingw-w64-ucrt-x86_64-make ucrt64/mingw-w64-ucrt-x86_64-openmp ucrt64/mingw-w64-ucrt-x86_64-dlfcn ucrt64/mingw-w64-ucrt-x86_64-boost
175+
pacman -S ucrt64/mingw-w64-ucrt-x86_64-lapack ucrt64/mingw-w64-ucrt-x86_64-openblas ucrt64/mingw-w64-ucrt-x86_64-cmake ucrt64/mingw-w64-ucrt-x86_64-clang ucrt64/mingw-w64-ucrt-x86_64-gcc ucrt64/mingw-w64-ucrt-x86_64-gcc-fortran mingw-w64-ucrt-x86_64-make ucrt64/mingw-w64-ucrt-x86_64-openmp ucrt64/mingw-w64-ucrt-x86_64-dlfcn ucrt64/mingw-w64-ucrt-x86_64-boost ucrt64/mingw-w64-ucrt-x86_64-llvm-openmp
174176
```
175177
</details>
176178

@@ -409,7 +411,6 @@ cmake ..
409411
-B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \
410412
-DUSE_MPI=OFF \
411413
-DKRATOS_SHARED_MEMORY_PARALLELIZATION="${KRATOS_SHARED_MEMORY_PARALLELIZATION}" \
412-
-DKRATOS_GENERATE_PYTHON_STUBS=ON \
413414
-DUSE_EIGEN_MKL=OFF
414415
415416
# Buid

scripts/standard_configure_MINGW.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ cmake ..
4545
-B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \
4646
-DUSE_MPI=OFF \
4747
-DKRATOS_SHARED_MEMORY_PARALLELIZATION="${KRATOS_SHARED_MEMORY_PARALLELIZATION}" \
48-
-DKRATOS_GENERATE_PYTHON_STUBS=ON \
4948
-DUSE_EIGEN_MKL=OFF
5049

5150
# Build

0 commit comments

Comments
 (0)