Repository for C++ game engineering
brew install sdl2 sdl2_image sdl2_ttf
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
./sdl-dev
If your Mac is running a recent version of MacOS High Sierra, then there is a chance that the standard header files were moved from the assumed /usr/include/
directory. In order to rectify this, run:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg