MinGW-w64's headers have been installed already, but not the rest of the project, including useful libraries. This building process will cover the rest of the MinGW-w64 project.
MinGW-w64-binutils-2.43.1, MinGW-w64-headers-12.0.0, and Static MinGW-w64-GCC-14.2.0
This may take a while to build. Feel free to do something else while this is building.
Install x86_64 MinGW-w64 by running the following commands:
mkdir build-x86_64 && cd build-x86_64 && ../configure --prefix=/usr/x86_64-w64-mingw32 \ --host=x86_64-w64-mingw32 \ --enable-experimental && make
Now, as the root
user:
make install
Now build the winpthreads library after installing the bulk of MinGW-w64 to prevent the build from linking against libraries that weren't installed but now are (this library enables POSIX thread support):
cd .. && mkdir -v build-x86_64-winpthreads && cd build-x86_64-winpthreads && ../mingw-w64-libraries/winpthreads/configure \ --prefix=/usr/x86_64-w64-mingw32 \ --host=x86_64-w64-mingw32 && make
Now install the winpthreads library as the root
user:
make install
Install i686 MinGW-w64 by running the following commands:
mkdir build-i686 && cd build-i686 && ../configure --prefix=/usr/i686-w64-mingw32 \ --host=i686-w64-mingw32 \ --enable-experimental && make
Now, as the root
user:
make install
Now build the winpthreads library after installing the bulk of MinGW-w64 to prevent the build from linking against libraries that weren't installed but now are (this library enables POSIX thread support):
cd .. && mkdir -v build-i686-winpthreads && cd build-i686-winpthreads && ../mingw-w64-libraries/winpthreads/configure \ --prefix=/usr/i686-w64-mingw32 \ --host=i686-w64-mingw32 && make
Now install the winpthreads library as the root
user:
make install
--prefix=/usr/*
: This
option installs the files to their respective architecture for
better separation of architectures.
--host=*
: This option
builds files for the architecture passed to it.
--enable-experimental
: This
option enables experimental features.