Reputation: 3118
Dose anyone know how to set up SDL (simple direct media layer) on OSX Lion so I can compile my code with g++ ? I have read the "readme" that comes with the package and I have placed the frameworks folder in the relevant directory, however, this does not seem to be enough. Can anyone help me ? (I do not want to use Xcode)
Upvotes: 3
Views: 2635
Reputation: 72527
If you're not using XCode, and are compiling SDL projects using gcc
, you can run:
gcc -o test SDLTest.c `sdl-config --cflags --libs`
g++ -o test SDLText.c `sdl-config --cflags --libs`
This works happily for me on my mac - sdl-config --version
returns 1.2.14
, and I can run test
:)
Upvotes: 6