You are required to manually apply the following small patch in order to avoid this issue. The standard configuration adopted by MinGW64 forbids to effectively link libpthread as a static library.
This will be the directory where to install all 32 bit builds.Īnd this will be the directory where to install all 64 bit builds. In order to mantain a properly ordered filesystem layout, clearly separating 32 bit and 64 bit components we can't any longer adopt the classic /usr/local target as the standard destination where to install our custom builds. It will be internally mapped by MSYS2 as /mingw64
the mingw32.exe shell will automatically target the 32 bit compiler.Understanding the two build environments: mingw32 and mingw64
Hint: you can easily check all packages declaring a matching name and if they are already installed or not by executing: Note: may well be you'll discover before or after that some tool is still missing.Įxample: the well known vim text editor is still missing you can easily install it by executing:
all right: you've now completed your MinGW64 + MSYS2 installation, and you are ready to start building your Windows binary executables.This will install CMake for both 32 and 64 bit. pacman -S -needed mingw-w64-x86_64-toolchain.pacman -S -needed mingw-w64-i686-toolchain.This will install make, pkg-config and many others useful tools. Then execute the following commands from the shell:.Just click the icon of one between msys2.exe, mingw32i.exe or mingw64.exe you'll find into the C:\dev\msys64 folder (the one or the other is not relevant in this context). Pacman is a package manager similar to Red Hat's yum and Debian's apt-get, and will make really easy the task to prepare a complete build environment. Note: MSYS2 is a common shell environment supporting both the 32 bit and the 64 bit compilers, so you have to perform this step just once.Īfter properly installing MSYS2 you'll be able to use pacman in order to complete your installation.Please follow the instructions you can find here once MSYS2 has been installed you must complete several further steps.start the installer: I suggest you to set C:/dev/msys64 as the base installation path.The most recent versions of MinGW64 and MSYS2 are reasonably easy to install just follow the instructions below. In order to check the actual version you are using, you simply have to execute the following command: gcc -version Important notice: all the following instructions require using the most recent versions of the compiler (i.e. The following notes are aimed exactly to this goal: allow you to avoid May well be you have to adapt something here and there in order to get a Quite obviously, Windows isn't exactly the same as Linux, so you cannotĮxpect to get always an easy and painless build. Windows as well, simply using the classic build tool-chain, as
Using both them you can build standard open source software [ originally MSYS2 is a command shell supporting a minimalistic Linux-like Mingw64 can create both 32 and 64 bit binary executables.
The MinGW64 + MSYS2 environment MinGW64 is an open source C/C++ compiler for WIndows platformsīased on the popular gcc available on Linux and on many other Operating Systems