| Summary: | SDL2 compile error on OS X -arch ppc | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Nikos Chantziaras <realnc> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | buckyballreaction |
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Mac OS X 10.6 | ||
|
Description
Nikos Chantziaras
2012-03-03 03:56:53 UTC
OK, too much unneeded complexity. It even fails with a simple: configure CFLAGS="-arch ppc" LDFLAGS="-arch ppc" Hi, I came across this same error and wrote to the mailing with my findings: http://lists.libsdl.org/pipermail/sdl-libsdl.org/2012-March/084160.html Short answer to the workaround: set SDL_ALTIVEC_BLITTERS to 0 in the file SDL_config_macosx.h D I should explain the issue in more detail here in the bug: From my e-mail: ---snip--- It looks like the 'alpha' member of the SDL_PixelFormat struct was part of SDL 1.2 in the file SDL_video.h (my IDE jumped to the system SDL header when I followed it by accident...) It looks like that in SDL 2.0, SDL_PixelFormat has moved to SDL_pixels.h and has removed the 'alpha' member. However, there is left over code that uses the 'alpha' member in the SDL_ALTIVEC_BLITTERS portion of SDL_blit_N.c and therefore fails to compile when compiling for Mac OS X ppc (10.4/10.5) As a workaround, you can set SDL_ALTIVEC_BLITTERS to 0 in the file SDL_config_macosx.h; however, I do not know the effects of this (maybe performance will suffer in some areas?) ---snap--- I think this is fixed with this change: http://hg.libsdl.org/SDL/rev/9821f5c9b7bd Can you confirm? Confirmed. Compilation succeeds with SDL_ALTIVEC_BLITTERS set to 1 now. Tested with cross-compile on Xcode 3.2.2 on Snow Leopard (10.6). I just did a fresh PPC build with no alterations against the latest commit (53df899db00b). SDL2 Builds with no problems. SDL_ALTIVEC_BLITTERS was defined Am I allowed to resolved this if I'm not the opener? |