[SDL] gcc-fat v2 v0.0.1
Torsten Giebl
wizard at syntheticsw.com
Mon Feb 5 07:10:55 PST 2007
Hello !
> One question, isn't it possible to simply compile sdl as is decribed
> here [1] ?
>
> According to this document if architecture specifics are not decided
> at configuration-time but at compile-time (e.g. using endianness macros)
> then it is just a matter of passing -arch i386 -arch ppc to gcc during
> compilation and linking.
No, just because it is more than only fiddeling with
Little- or BigEndian.
On a PPC Mac for example you need to select on the commandline
/Developers/SDKs/MacOSX10.4u.sdk and -arch ppc and -arch i386
and you get an app that runs on 10.4 at minimum.
Okay for i386 this is no problem, 10.4 was the first with i386
i think, but what about the PPC Users that maybe still use 10.2 or 10.3 ?
On a X86 Mac -arch ppc -arch i386 is enough. As there the standard SDK is
10.4u.sdk, on PPC it is 10.4.0.sdk.
So for example SDL compiles fine down to 10.2, so the best
you can do for your user is to compile a PPC version for 10.2 from SDL
and a X86 version for 10.4 from SDL and combine this to libs with lipo.
When you have done that with SDL, you need to do the same with
your application or game.
As Ryan Gordon had this great idea to let a script do this
for you.
CU
More information about the SDL
mailing list