The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 Android Mixer set-up / compiler problems
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
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...
SDL2 Android Mixer set-up / compiler problems
John
Guest

Drop it under jni/, *next to* SDL/.

On 08/13/2015 12:12 AM, AntTheAlchemist wrote:
Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org