I downloaded SDL2-2.0.3
. I ran ./configure && make && make install
.
I\'ve also tried brew install SDL2
.
You need to run
sdl2-config --cflags
which will give you the compile flags, andsdl2-config --libs
which will give you the linker flagsneeded for using SDL2.
The flags will vary by platform which is why you should use sdl2-config
instead of hardcoding some specific flags into your Makefile or other build script.