Post by JeZ-l-LeeHi,
I've taken a second look at SDL2 for Android O.S. smartphones & tablets.
- Does SDL2_Image, SDL2_Mixer, & SDL2_TTF work on Android O.S. ?
Yes, probably, yes.
I’ve use ALmixer for years on Android. It is used commercially in a
few engines, such the Corona SDK, so it has been hammered and debugged
throughly on a bunch of specific Android problems. I finally have a
native OpenSL ES backend decoder for it because the codec dependency
hell and bloat. (All the dependencies are a PITA and then there are
the potential patent issues on some codecs.) SDL_mixer probably works
too, though I can’t attest to how much of a pain it is to build and
how many of the Android issues have been worked through. (By Android
issues, it can be a wide range from manufacturer specific issues to
Android version specific issues, to general Android issues.)
Post by JeZ-l-Lee- Can I setup SDL2 and above 3 support libraries to work in current Android
Studio 2 on Linux?
You *can*. But you will have to implement it all yourself (or use my
SDK mentioned below). I think I’m one of the few that has pushed very
hard into this frontier, and am probably further along than most
(See my Blurrr SDK intro video starting at
The Android demo is in part 3.
)
However, as maartenengels, things are crappy. I don’t have NDK
debugger support still. (The NDK clang switch-over would have been
disruptive if not for the fact that gdb never really worked to begin
with.) But the bigger primary goal for Blurrr was to help manage the
wide range (currently 6 platforms) of native build systems while still
allowing access to the native toolchain. (Stuff like the adb bridge,
profile tools, and Java debugging is still accessible.)
The Android NDK is a nightmare and the Android tools keep changing and
breaking. Android Studio for the most part doesn’t care about the NDK
so integration has sucked. They recently started rolling out new CMake
support, but they’ve now caused a new kind of fragmentation because
most of the world has been working off a forked version of OpenCV’s
CMake toolchain for many years now. And CMake itself was starting to
introduce its own built-in support, so now we have 3 incompatible
systems.
Post by JeZ-l-Lee(URL link to a good tutorial would be great)
- Does SDL2 on Android O.S. utilize hardware accelerated drawings?
Yes. It believe it is using OpenGL ES.
So, everything is possible, but you will probably have to do a bunch
of work yourself.
If you would like to try out Blurrr, feel free to contact me directly.
It is designed to tackle a lot of these annoying platform specific
problems so you can just focus on your game. (Though I currently don’t
include SDL_mixer since I have ALmixer. I might eventually add it, but
it has been lower on my priority list.)
Thanks,
Eric
https://blurrrsdk.com