GP2X Sdl_openaudio Fails With Devkitgp2x


rixed

Member
Joined
Dec 31, 2005
Messages
206
Age
48
Location
Paris (fr)
Website
happyleptic.org
I y'all !

Ive got a strange problem while porting a prog from PC to GP2X :

when I use devkitGP2X, the prog runs OK except that SDL_OpenAudio allways returns -1 (Couldn't create mixer lock).

when I use the official devkit for linux, the sound is OK, but the code generated by this older version of GCC is so slow for
floating math that the prog crash.

So, I would like to know if SDL_OpenAudio is doomed to fail on devkitGP2X, or if I forget to do something ?
 
Blah posted on Dec 30 2006 at 11:44 PM said:
I read that GPH's sdl_mixer is broken, you might want to try the new libs.

I suppose GPH's libraries are the one in the 'official' SDK, which are working for me.
That's the one packaged with devkitGP2X that keeps returning -1.

Anyway, SDL_OpenAudio is in libSDL, not libSDL_mixer.



I also tried to link the libSDL of the official devkit with the binary generated by devkitGP2X, and I get this unbelievable error message from ld :

/usr/local/devkitPro/devkitGP2X/lib/gcc/arm-linux/4.0.2/../../../../arm-linux/bin/ld: ERROR: ./libSDL-1.2.so uses hardware FP, whereas my_binary uses software FP

libSDL uses hardware FP ? really ?
 
Last edited by a moderator:
Blah posted on Dec 31 2006 at 07:17 AM said:
That occurs when linking certain object files from a certain version of gcc that did something wacky.

So, GP2X libSDL was compiled with a gcc that did something wacky ?
So, one cannot link with them until one uses the same wacky gcc ?
How do you people use these lib ?
 
Last edited by a moderator:
Ok, with SDL_DEBUG=1, I've got :

SDL_SetError: SDL not configured with thread support

Which is prety clear.
So, to sum it up :

- SDL_audio in devkitGP2X is compiled out
- gcc4 from devkitGP2X won't link with official SDL libs
- I need gcc4, aparently.

Looks like someone is going to release something with sounds off :)
 
Back
Top