Re: Possible To Use SDL2 & Android Studio 2 On Linux?
Eric Wing <[email protected]> Mon, 23 Jan 2017 09:44:32 -0800
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CA+Q62MAJTAv4oP2h=h+yDZQspZgNqr=FxdzkVZ7GMfRd3o=12g@mail.gmail.com> |
On 1/21/17, JeZ-l-Lee <[email protected]> wrote: > Hi, > > I've taken a second look at SDL2 for Android O.S. smartphones & tablets. > I have some question now: > - 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.) > - 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 https://www.youtube.com/watch?v=wCWFqHJC_gI&index=1&list=PLfQSQ4hu539MKtZZLdFSK63QAmiep1Ksj 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. > (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 _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org