- 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).
Dog Plays Chess on ESP32
2 hours ago
No comments:
Post a Comment