Help me installing sdl

Hello I have spent over 3 days trying to figure out how to install sdl into xcode. I am on a part of tutorial by lazyfoo and I dont understand the part to add sdl into a search path for xcode.. how do i add to a search path? I am super confused, if someone could tell me how to install sdl, I am tearing my hair out!! Or if you can link to some tutorials I would really appreciate it. Thank you in advance guys, I really appreciate it. Truly frustrated, Michael
By sdl do you mean Simple DirectMedia Layer?
And by xcode do you mean Macintosh operating system?

If the answer is yes to those questions...

I noticed that on here Macintosh ports are still unofficial:
http://www.libsdl.org/intro.en/whatplatforms.html

They have the inofrmation here on how to install it:
http://wiki.libsdl.org/moin.cgi/FAQMacOSX#How_do_I_install_SDL_UNIX_style.3F

If the answer was not yes to either of those questions, could you be more specific?
Last edited on
I don't use xcode so I don't know how to do it but I'll give it a try.

I guess you are talking about step 6.
http://lazyfoo.net/SDL_tutorials/lesson01/mac/xcode/index.php#6

Do you find the Build Settings tab? It's visible in the screenshot.

There should be something called Framework Search Paths or something like that. You should somehow add /Library/Frameworks to it, maybe by double clicking.
Peter87, Thank you so much for trying!! The thing is that when it pulls up, I dont know how to add, it has two sub-tabs, one saying release, the latter debug. I dont know what to do from there :(. I truly appreciate your effort :)
update* I was able to change the search path, but it still wont work: The #include <sdl/sdl.h> still shows error. arghhhh!!! I am so frustrateddddd
The search path should point to the first part of the <sdl/sdl.h>, or just

#include <sdl.h>

It should be upper case
#include "SDL.h"

http://www.libsdl.org/cgi/docwiki.cgi/FAQ_Including_SDL_Headers
Topic archived. No new replies allowed.