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 SDLIf 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 SDLFor 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 1After 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 | |
| SDL 2D OpenGL setup | unknown | 13 | 6,375 |
Jul 16, 2005 09:07 PM Last Post: unknown |
|
| Setup! | Coin | 16 | 8,525 |
Mar 25, 2005 10:30 AM Last Post: tigakub |
|
| OpenGL / SDL setup problem | Diplomtennis | 2 | 2,780 |
Oct 12, 2004 06:04 AM Last Post: Diplomtennis |
|
| OpenGL Setup - NIB or Code? | Justin Brimm | 16 | 6,462 |
Jun 24, 2004 02:48 PM Last Post: kelvin |
|
| OpenGL Setup Without GLUT | Justin Brimm | 3 | 3,450 |
Jan 25, 2004 11:44 PM Last Post: skyhawk |
|

