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
Using SDL_mixer & SDL_ttf on Android
agakisiyev


Joined: 18 Jun 2015
Posts: 7
Guys can anyone help me to set up those SDL libraries for android project? I followed Lazyfoo's tutorial for SDL_image ( http://lazyfoo.net/tutorials/SDL/53_extensions_and_changing_orientation/android_windows/index.php ) , it works with SDL_image library, but when I did it with those 2 libraries, it did not work. There are no errors while compiling and installing, but when I open app it gives an error : "Unfortunately YourApp has stopped". I commented out everything related to those 2 libraries, but the result is the same.
isaacburns


Joined: 25 Jun 2015
Posts: 2
You might try adding the dependencies "mikmod" and "smpeg2" before "SDL2_mixer" in SDLActivity::getLibraries in SDLActivity.java.

Does SDL_ttf work without SDL_mixer?
agakisiyev


Joined: 18 Jun 2015
Posts: 7
isaacburns wrote:
You might try adding the dependencies "mikmod" and "smpeg2" before "SDL2_mixer" in SDLActivity::getLibraries in SDLActivity.java.

Does SDL_ttf work without SDL_mixer?


I dont think that there are problem with dependencies, cause it compiled without no problem and during compiling it compiled mikmod and others as well. I will try SDL_ttf asap and post the result Smile
agakisiyev


Joined: 18 Jun 2015
Posts: 7
I checked, SDL_ttf works with no problem, problem is with SDL_mixer
Update!
agakisiyev


Joined: 18 Jun 2015
Posts: 7
Update: In Android.mk file of SDL2_mixer I excluded all external libraries and it worked, then probably there must be problem with one of that libraries.
isaacburns


Joined: 25 Jun 2015
Posts: 2
The Android project dynamically links the SDL libraries; so your app will link, but fail to run if a dependent library (like SDL_mixer.so) is loaded before all of it's dependencies (by default, libmikmod.so and libsmpeg2.so).
Using SDL_mixer & SDL_ttf on Android
Juanma BC
Guest

This thread has some months, but the SDLActivity.java seems to apply yet, more goodies here about android full setup too: https://forums.libsdl.org/viewtopic.php?p=43521&sid=806fdcebbce94a79c03e2fcfacf1cbab
Still no Rumble? I mumble. El 03/07/2015 23:32, "isaacburns" escribió:
Quote:
The Android project dynamically links the SDL libraries; so your app will link, but fail to run if a dependent library (like SDL_mixer.so) is loaded before all of it's dependencies (by default, libmikmod.so and libsmpeg2.so).


_______________________________________________
SDL mailing list

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

Using SDL_mixer & SDL_ttf on Android
Juanma BC
Guest

I think this post was lost in a "Reply To All", because if i'd think just ignored... Wink, hence:
This thread has some months, but the SDLActivity.java seems to apply yet, more goodies here about android full setup too: https://forums.libsdl.org/viewtopic.php?p=43521&sid=806fdcebbce94a79c03e2fcfacf1cbab
If it compiles, review logcat in an adb shell.
Agakisev talks about LOADING dependecy not compiling dependency. App would fault loading Mixer without
loading mikmod first.This is how it is currently, though Mixer should have the info to load itself its own dependencies, Android or SDL???
The mentioned "Android Bits" thread, is exactly a howto about all that
JMBC