Having obtained a mac, I’m in the process of porting some of my SDL
applications to Mac. I’m being hampered by something very strange.
I’d like to define the preprocessor macro FRAMEWORK_SDL, to tell my app to
include the correct(and strange) header file locations for OSX. Xcode 2.1
has an obvious place to do this in Project Options, but upon compile it
completely ignores it!
Even stranger, if I build an app from the plain C template rather than the SDL
one, the preprocessor configuration thing works absolutely fine. It must be
a problem with the template.
How can this be fixed?
I encountered something that may or may not be related to this. I had
previously created an OpenGL SDL application with the template. The
other day I went to add in some things using SDL_image. I added the
framework to my project, assuming things would work. It couldn’t find
SDL_image.h however…I checked for custom settings in the project
info for header paths, etc. Still no luck.
So I opened the Xcode package and popped the project file open in
TextEdit and did a search for SDL. Turns out there was a additional
include path which contained settings pointing to SDL. I couldn’t find
them in the GUI however. I added paths to SDL_image framework, and a
"-framework SDL_image" closed it…opened in Xcode…and it worked.
So…
Long story short, I suspect there is something going on with the
template. What? I’m not sure really.On 8/10/05, Tyler Montbriand wrote:
Having obtained a mac, I’m in the process of porting some of my SDL
applications to Mac. I’m being hampered by something very strange.
I’d like to define the preprocessor macro FRAMEWORK_SDL, to tell my app to
include the correct(and strange) header file locations for OSX. Xcode 2.1
has an obvious place to do this in Project Options, but upon compile it
completely ignores it!
Even stranger, if I build an app from the plain C template rather than the SDL
one, the preprocessor configuration thing works absolutely fine. It must be
a problem with the template.
How can this be fixed?
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
Casey O’Donnell
RPI STS Department - Graduate Student
http://homepage.mac.com/codonnell/
http://homepage.mac.com/codonnell/wxsync/
http://homepage.mac.com/codonnell/wxblogger/