Configure Options for Building Mingw-64 on Linux-64 for Linux-64 (Ultimately Targetting Windows-64)

How to build linux tools via MingW64 in 2021?

There is a way to run ./configure on Windows. You need MSYS2 for that, which will give you a bash shell and the tools needed by ./configure.

MSYS2 comes with a package manager (pacman) which allows you to install a more recent MinGW-w64.

How to Compile mingw-w64-crt

Performing the following has allowed me to successfully compile:

pacman -S $MINGW_PACKAGE_PREFIX-toolchain
mkdir mingw-w64-crt && cd mingw-w64-crt
../mingw-w64-v7.0.0/mingw-w64-crt/configure --prefix=/mingw-w64 --with-sysroot=/mingw64
make -j %NUMBER_OF_PROCESSORS%
make install


Related Topics



Leave a reply



Submit