Skip to content

Instantly share code, notes, and snippets.

@nitrix
Last active June 2, 2022 05:03
Show Gist options
  • Save nitrix/7aa75fddd0164b864e712030d48cdb44 to your computer and use it in GitHub Desktop.
Save nitrix/7aa75fddd0164b864e712030d48cdb44 to your computer and use it in GitHub Desktop.
Setup:
1) Fresh new install of msys2-x86_64-20220503.exe.
2) Launch _specifically_ the "MSYS2 MinGW x64" terminal (not the one it suggests).
3) Run pacman -S mingw-w64-x86_64-{make,cmake,gcc,clang,gdb} and say yes at the prompt.
4) Add `C:\msys64\mingw64\bin` to windows's PATH.
*** If you intend to continue with the usage section, you have to restart the "MSYS2 MinGW x64" terminal
for your changes to the PATH environment variable to refresh.
Usage:
1) Launch a "MSYS2 MinGW x64" terminal.
2) Go where your glfw is located; cd /c/Users/nitrix/Desktop/glfw
3) cmake -G "MinGW Makefiles" -S . -B build
4) mingw32-make -C build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment