[SDL] SDL with gcc-fat
Ryan C. Gordon
icculus at icculus.org
Thu Feb 22 16:41:16 PST 2007
> When i compile SDL with fatbuild as a Univ. Binary
> everything works great. When i compile it with my gcc-fat,
> it also compiles to the end, but only halve of the test
> examples work. testgl and testdyngl work, but not testsprite
> or testwin. testsprite prints an error about too large image.
> But hey this is the normal icon.bmp.
>
> Has anybody an idea why this happens ?
Probably it's building the Intel version with something like __POWERPC__
defined, or vice versa...this will cause byteswapping to happen on data
it shouldn't, so things like standard files will get outrageous values
where they shouldn't.
Can you send me (not the mailing list) the actual calls to gcc that
happen when you build with gcc-fat? There's probably a -D option that is
getting passed in to both architecture's compiles that shouldn't be.
--ryan.
More information about the SDL
mailing list