xCode/SDL Setup
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:
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:
For whatever reason the compiler can't find the framework still. This might even be the root of my error:
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!
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!
The search path for frameworks should include the directory where SDL.framework is.
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
bug in OpenGL setup for NSOpenGL subclass (I think) | backslash | 2 | 5,111 |
Jul 18, 2007 01:10 PM Last Post: backslash |
|
Fullscreen/Window Setup/toggle | skyhawk | 10 | 7,673 |
Oct 13, 2006 04:05 PM Last Post: skyhawk |
|
Testing GL Setup Code (Help Wanted) | Matrix | 8 | 6,430 |
Sep 11, 2006 04:06 PM Last Post: sjstux |
|
SDL 2D OpenGL setup | unknown | 13 | 11,317 |
Jul 16, 2005 09:07 PM Last Post: unknown |
|
Setup! | Coin | 16 | 13,380 |
Mar 25, 2005 10:30 AM Last Post: tigakub |