[SDL] SDL_gfx on Mac OS X

Michael Ryan Bannon ryan.bannon at humagade.com
Fri Apr 7 06:16:29 PDT 2006


Wicked!

Thanks for the response and the ZIP.  Just go in...gonna try it right now. 
I have high hopes!  I'll let you know what happened.  As for the i386/PPC 
issues, I'm going to look into this as well.  Thanks.

"E. Wing" <ewmailing at gmail.com> wrote in message 
news:3c7e3c8a0604061453t13e6966fpc200b6190def6f7b at mail.gmail.com...
> I looked at the extras...in particular, the simple SDL Applications.  Here
> are the differences I found:

> - the example includes SDL.h with different syntax (the example uses
> "#include "SDL.h", while I use #include <SDL/SDL.h>, which is what I 
> thought
> was the proper way to go...although I later found out that the project
> defines the SDL.framework/Headers directory in its include search path, so 
> I
> guess that answers that)

For the OS X framework, <SDL/SDL.h> would be the proper Apple
convention, but #include "SDL.h" is encouraged for portability reasons
as not all distributions/platforms put their headers in a place that
will map to <SDL/SDL.h>.

> What really confuses me is this: how could Xcode find the SDL header files
> when compiling but not the framework binary when linking?  Especially when
> all I did was just add a reference to SDL.framework in the 
> project...nothing
> else.

Attached is framework project I whipped together which you can check
your stuff against.

However it just occurs to me that you might be only building on i386.
If you are using a non-Universal framework, then it only has PPC code,
and obviously all the symbols will be missing since there is no x86
code. Our Universal framework can only be found in CVS at the moment
(announced on the list several times). You better make sure you're
using that one (and it's up-to-date with our last test snapshot).

http://www.libsdl.org/cvs/SDL.dmg

-Eric



--------------------------------------------------------------------------------


> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
> 







More information about the SDL mailing list