SDL2 Android Mixer set-up / compiler problems

I’ve read many posts about adding SDL2_Mixer to Android, but none of them have worked for me. Does anyone have clear step-by-step instructions on how to do this?

Running ndk-build in the SDL2_mixer-2.0.0 produces undefined references. Running ndk-build normally can’t find SDL2_mixer.h.

Dropping the .h files into jni\SDL\include and the .c files into jni\SDL\src seems to get me passed all the compiler errors. Mixing the mixer source files with the SDL2 source files. Is this a reasonable solution? I seem to have skipped a load of steps out that I didn’t understand…

Drop it under jni/, next to SDL/.On 08/13/2015 12:12 AM, AntTheAlchemist wrote:

I’ve read many posts about adding SDL2_Mixer to Android, but none of them have
worked for me. Does anyone have clear step-by-step instructions on how to do this?

Running ndk-build in the SDL2_mixer-2.0.0 produces undefined references. Running
ndk-build normally can’t find SDL2_mixer.h.

Dropping the .h files into jni\SDL\include and the .c files into jni\SDL\src
seems to get me passed all the compiler errors. Mixing the mixer source files
with the SDL2 source files. Is this a reasonable solution? I seem to have
skipped a load of steps out that I didn’t understand…


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org