You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unpack all these ZIPs in a path that does not contain spaces,
93
-
to avoid problems later.
94
-
95
-
- Launch msys.bat (in the root directory of the extracted MSYS ZIP).
96
-
97
-
- Your path must contain:
98
-
- The bin directory of the extracted MinGW ZIP
99
-
(it contains <arch>-gcc)
100
-
- The <arch>/lib directory of the extracted MinGW ZIP
101
-
(it contains libgcc*.DLL, needed for C++ tests during make check)
102
-
- Visual C++ Express bin and IDE directories
103
-
- The bin directory of the non-cross-compiling MinGW ZIP
104
-
when building a 64bits zipball on a 32bits Windows
105
-
- The bin directory of the findutils ZIP to find the "find" command
106
-
(the Windows find command cannot be used)
107
-
- Examples of PATH (depends on where ZIPs were extracted and were Visual Studio was installed):
108
-
- For a 32bits zipball:
109
-
$ PATH=/c/hwloc/mingw32/bin:/c/hwloc/mingw32/i686-w64-mingw32/lib:”/c/Program Files/Microsoft Visual Studio 10.0/VC/bin”:”/c/Program Files/Microsoft Visual Studio 10.0/Common7/IDE”:$PATH
110
-
- For a 64bits zipball:
111
-
$ PATH=/c/hwloc/mingw64/bin:/c/hwloc/mingw64/x86_64-w64-mingw32/lib:”/c/Program Files/Microsoft Visual Studio 10.0/VC/bin”:”/c/Program Files/Microsoft Visual Studio 10.0/Common7/IDE”:$PATH
112
-
- For a 64bits zipball on a 32bits Windows:
113
-
$ PATH=/c/hwloc/mingw64/bin:/c/hwloc/mingw32/bin:/c/hwloc/mingw32/i686-w64-mingw32/lib:”/c/Program Files/Microsoft Visual Studio 10.0/VC/bin”:”/c/Program Files/Microsoft Visual Studio 10.0/Common7/IDE”:$PATH
114
-
- Check that running "lib", "link" and "cl" finds the right tools (installed by Visual Studio)
115
-
and displays their usage output (list of command-line options).
116
-
117
-
- Download a hwloc tarball (building from SVN requires autotools, doxygen, LaTeX, etc.),
97
+
- MSYS2 from https://www.msys2.org/
98
+
- Run a MSYS2 terminal and install MinGW compilers and some tools:
99
+
$ pacman -Suy
100
+
$ pacman -S tar zip coreutils diffutils findutils make mingw-w64-i686-gcc mingw-w64-x86_64-gcc
101
+
- Visual Studio (e.g. 2019 Community Edition)
102
+
During installation, make sure you activate
103
+
- C++ Desktop Development,
104
+
- Windows 10 SDK (or more recent)
105
+
- x64/x86 Build Tools (e.g. version v142),
106
+
- C++ Modules for Build Tools (e.g. v142),
107
+
- C++/CLI for Build Tools (e.g. v142),
108
+
- C++ Clang and CMake tools (not needed for MinGW-only builds).
0 commit comments