- get MSYS2 and install it as in the description (use C:\msys64)
- run msys2.exe in the MSYS2 root directory
- install CMake by running
pacman -S mingw-w64-x86_64-cmake
- install toolchain by running
pacman -S mingw-w64-x86_64-toolchain
- install psutil by running
pacman -S mingw-w64-x86_64-python-psutil
- if you are asked what exactly to install, just choose all (pressing Enter)
- run mingw64.exe in the MSYS2 root directory
- install pip by running
python -m ensurepip
- run mingw64.exe in the MSYS2 root directory
- navigate to the project directory (e.g.
cd C:/Users/lyniat/Documents/dragonruby-windows-amd64/dr-socket
) - run
sh build-unix.sh -target windows