SFML community forums

General => General discussions => Topic started by: GameCodingNinja on January 14, 2018, 04:18:21 pm

Title: How is Andorid and iOS support coming?
Post by: GameCodingNinja on January 14, 2018, 04:18:21 pm
My game engine (C++) currently uses SDL2 but I'm frustrated with the lack of proper Android support. Ever since google stripped out Ant support a few years ago, there's no way to build an Android project unless you have an old setup that still has Ant support. The only solutions that show up via google are old implementations that rely on the old experimental gradle. With the most current Android Studio, NDK development can be handled via CMake. Unfortunately I'm not an Android or aSDL2 expert so my attempts at setting this up is not working. The SDL2 forums don't provide any real help.

I'm extremely frustrated and looking for a new option. My understanding is that your Android and iOS implementation is experimental. How experimental are we talking?
Title: Re: How is Andorid and iOS support coming?
Post by: eXpl0it3r on January 15, 2018, 09:15:14 am
SFML has been used in multiple apps on Android and I believe there were some in development for iOS.

The API is pretty stable and it's certainly working to some degree. The problem we have, is that we don't have enough testers who then also report back issues and also who help solve them. Since the Android universe is so vast, it's impossible to test everything and sometimes error only occur on a specific device, so we do really rely on people helping out finding a fix.

Additionally we're still looking for an active maintainer for iOS.
Title: Re: How is Andorid and iOS support coming?
Post by: GameCodingNinja on January 20, 2018, 01:49:39 pm
Thanks for your response.  :)
Title: Re: How is Andorid and iOS support coming?
Post by: Alia5 on February 27, 2018, 10:05:10 am
Android works just fine.
Even with android studio.
With some of the latest commits in SFMLs master branch you don't even need an older version of the NDK to build SFML for Android.

https://github.com/Alia5/SFML_AndroidStudio

The example here isn't complete, but I think one can fill the gaps...


The only downside is that on OpenGLES SFML currently cannot create a non-legacy context, and therefore has no shader support
Title: Re: How is Andorid and iOS support coming?
Post by: aggsol on March 21, 2018, 08:54:12 am
@Alia5 Do you know if something is broken? I am still on 2.3 and I am unsure if going to master or waiting for 2.5 is the better idea. Android is more a nice to have for me atm.
Title: Re: How is Andorid and iOS support coming?
Post by: Alia5 on March 29, 2018, 02:56:44 am
2.4.2 works fine... 2.3 should as well. You have to build sfml with an old ndk though, in android studio you can use the latest and greatest
With master (or soon 2.5) you can go all the way with the latest ndk

Just be sure to fix paths in the build files (android studios) if neccesary.

If you have the choice, I'd go with master.