-
Get
install-sdl.sh
. (Alt+Click) -
Open Terminal.
-
In Terminal:
cd ~/Downloads/
(Or where install-sdl.sh is.)sh install-sdl.sh
To use it, you can use gcc compiler:
gcc sample-sdl-code.c -o workingSDL `sdl-config --cflags --libs` -lSDL -lSDLmain -lSDL_gfx -lSDL_ttf -lSDL_image -lSDL_mixer -framework Cocoa
To include it in your C projects:
...
#include <SDL/SDL.h>
#include <SDL_gfx/SDL_gfxPrimitives.h>
...