- Download SDL - the source tarball.
 
- Extract the tar, and open the command prompt to that directory
 
- Type "./configure" "make" and "sudo make install".
 
 You should have the libSDL.a in /usr/local/lib, and headers in /usr/local/include/SDL
 
- Download/write a simple SDL test program, I like Sol's SDL tutorials, the nice old school plasma. 
 
- Compile: 
 g++ main.cpp -lsdl -lsdlmain -framework Cocoa -o output If you are using OpenGL, add a "-framework OpenGL" in the command line as well. (You can get a sample OpenGL SDL C++ program for OS X here).
 
Monday, January 11, 2010
SDL on Apple Mac OS X
Short post on using SDL on Mac OS X:
Subscribe to:
Post Comments (Atom)

 
 
 Posts
Posts
 
 

No comments:
Post a Comment