This project compiles under Linux, Mac OS, and Windows simply by running:
make
nmake
sudo apt-get install libsdl2-dev
Or whatever the equivalent package is for your distro.
brew install sdl2
- Download the latest VC development files from: https://libsdl.org
- Place the entire contents of
includeandlibunderC:\INCLUDE\SDL2. - Copy the
SDL2.dllunderlibtoC:\Windows\System32andC:\Windows\SysWOW64. - Profit.
Special thanks to this tutorial: https://headerphile.com/sdl2/sdl2-part-0-setting-up-visual-studio-for-sdl2/
Bonus: This project is importable as a Visual Studio 2019 template.