xCode/SDL Setup

hammonjj
Unregistered
 
Post: #1
I'm having quite a few problems getting xCode to play nice with SDL

I installed both the framework and templates into xCode. I can see the templates in xCode, but when I try to create an SDL application I can't compile the default stuff there. The first problem is that the compiler can't find the header files, but if I move them into the project directory that fixes it. I did try changing "SDL.h" to "SDL/SDL.h", but that did nothing.

The bigger issue is that even after I move the header files, I still can't compile the code. I get one warning and one error:

Code:
warning -F: directory name (/Users/james/Library/Frameworks) does not exist

can't locate framework for: -framework SDL

If I go into the target settings and change where it is searching for the framework then I can get rid of this warning, except for the part:

Code:
can't locate framework for: -framework SDL

For whatever reason the compiler can't find the framework still. This might even be the root of my error:

Code:
Command /usr/bin/gcc-4.0 failed with exit code 1

After a lot of googling I have had no luck with finding out what this means.

I'm using the latest version of xCode and the SDL framework/templates.

Thanks for all your help!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
The search path for frameworks should include the directory where SDL.framework is.
Quote this message in a reply
hammonjj
Unregistered
 
Post: #3
Oddly enough, I discovered that if, instead of telling the compiler where the framework is, I go into the framework folder and import everything then it all seems to work.

Go figure.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  bug in OpenGL setup for NSOpenGL subclass (I think) backslash 2 3,715 Jul 18, 2007 01:10 PM
Last Post: backslash
  Fullscreen/Window Setup/toggle skyhawk 10 4,850 Oct 13, 2006 04:05 PM
Last Post: skyhawk
  Testing GL Setup Code (Help Wanted) Matrix 8 3,920 Sep 11, 2006 04:06 PM
Last Post: sjstux
  SDL 2D OpenGL setup unknown 13 7,083 Jul 16, 2005 09:07 PM
Last Post: unknown
  Setup! Coin 16 9,354 Mar 25, 2005 10:30 AM
Last Post: tigakub