Hi,
I am brand new to SDL and am having problems compiling the sdl-mixer example
code:
Requirements:
You must have the SDL.framework installed. DONE
To Install:
Copy the SDL_mixer.framework to /Library/Frameworks DONE
I am using the latest code which stops at: #include “SDL.h” #include “SDL_thread.h” #include “SDL_mixer.h”
It’s doesn’t like any of these library names:
/Users/danny/sdl_mixer/main.cpp:1:17: error: SDL.h: No such file or
directory
/Users/danny/sdl_mixer/main.cpp:2:24: error: SDL_thread.h: No such file or
directory
/Users/danny/sdl_mixer/main.cpp:3:23: error: SDL_mixer.h: No such file or
directory
Copy the SDL_mixer.framework to /Library/Frameworks DONE
I am using the latest code which stops at: #include “SDL.h” #include “SDL_thread.h” #include “SDL_mixer.h”
It’s doesn’t like any of these library names:
/Users/danny/sdl_mixer/main.cpp:1:17: error: SDL.h: No such file or
directory
/Users/danny/sdl_mixer/main.cpp:2:24: error: SDL_thread.h: No such file or
directory
/Users/danny/sdl_mixer/main.cpp:3:23: error: SDL_mixer.h: No such file or
directory
Assuming you’re using Xcode:
Add “/Library/Frameworks/SDL.framework/Headers” (and probably
“/Library/Frameworks/SDL_mixer.framework/Headers”) to the “Header Search
Paths” build setting in your project or target info.