Template for building Raylib 4.0 from source with ming32-make and compiling your project
- Windows 7/10+
- Mingw with mingw32-make, g++, gdb TODO: expand this to properly explain
- Environment variables set so mingw32-build command can be run in this directory
$ git clone https://github.com/raysan5/raylib
$ cd raylib/src mingw32-make PLATFORM=PLATFORM_DESKTOP
$ mkdir ../../src/include/raylib -p && mkdir ../../src/lib
$ cp *.h ../../src/include/raylib && cp *.a ../../src/lib
- Ensure compilerPath in .vscode/c_cpp_properties.json points to your g++ installation ie
"compilerPath": "C:/msys64/mingw64/bin/g++.exe"
- Ensure paths are also correct for debugger (gdb) ie
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
$ mkdir build
With main.cpp selected/active in vscode, run debug task or "Start Debugging" from run menu.