- Install Msys2 from msys2.org
- Complete the steps and open Msys2
- Update package databases
pacman -Syu - Update rest of base packages
pacman -Su - Using UCRT64 as the recommended environment, install Mingw-w64
pacman -S $MINGW_PACKAGE_PREFIX-{toolchain,ntldd}