[SDL] Frameworks and Xcode

Spencer Salazar ssalazar at CS.Princeton.EDU
Thu Sep 21 08:50:42 PDT 2006

1.) In my experience, building UB's is very easy with makefiles.  For  
my app, it was simply
CFLAGS+=-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
LDFLAGS+=-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
But I suppose your application may have more complex requirements/ 
behavior that mine does not.

2.) Probably an easier way to fix this than modifying the headers  
would have been to select Project->Edit Active Target from the menu,  
then GCC Compiler Settings, and then specifying -I/Frameworks/ 
SDL.framework/Headers -I/Frameworks/SDL_mixer.framework/Headers.  I  
think this is actually more or less what the SDL project template for  
Xcode does.


On Sep 21, 2006, at 8:31 AM, Peter Mulholland wrote:

> Hello,
> Having decided it was easier to build Universal Binaries of my games
> using Xcode than it was to fart about with a makefile, I decided to
> make use of SDL.framework and SDL_mixer.framework.. except I found
> that the headers inside SDL_mixer.framework all include SDL as if it
> was in a UNIX environment. To get a working compile I had to modify
> the headers to #include <SDL/SDL.h> etc...
> Is this normal, or am I not setting up something correctly in Xcode?
> -- 
> Best regards,
>  Peter                          mailto:darkmatter at freeuk.com
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl

More information about the SDL mailing list