Regarding "test" directory. I think sdl2-config has problem in native env - or I just can't use it properly. Anyway, after setting prefix as /sdk/local/newlib, as with sdl(1)-config, it was possible to configure tests. This assumes that you have SDK:local/newlib/include/SDL2 and libs in SDK:local/newlib/lib.
Then, I had to hack sdl2-config to add -use-dynld -ldl, to make tests link in my own environment.
Please note that you need to copy also build/SDL2_test.a into SDK:local/newlib/lib/.
I believe there has to be some configure script modifications to fix sdl2-config for natives.
Oh, and BMP loading is broken, image tests didn't work. I will open a ticket.
After configuring with --disable-altivec, "testrendercopyex" works with Sam440. If there is some AltiVec expert lurking, perhaps (s)he could help to understand why GCC generates some vector instructions for RenderCopyEx function, causing illegal instruction.
Sound correct to me, you need AltiVec to use Altivec, CPU's without AltiVec like Sam440, will get a illegal instruction, the same thing if you use instructions that are only available on AMCC440, like ISEL this won't work on CPU's without ISEL opcode.
This way there is two versions of Mplayer, one with AltiVec and one without. It’s a hazel but it might worth it.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
be sure that no -maltivec switch is passed to GCC otherwise the compiler will generate optimized altivec function even if no altivec inline instructions are present into the code
Verified that many demo, actually, doesn't use the SDL_CommonQuit() and SDL_CommonState. This will be fixed asap.
This is quite common in SDL programming as far as I have experienced. makes me think that other SDL implmentations will clean up for the lazy prgrammer on exit().