SFML community forums

General => General discussions => Topic started by: Cmdu76 on February 23, 2016, 12:37:45 am

Title: Android Environment
Post by: Cmdu76 on February 23, 2016, 12:37:45 am
Hi all,

I'm actually learning how to use SFML on Android.
I'm porting my Windows games to Android and now I use the sfml example and this tutorial : https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android

I modify files like Android.mk and all others by trying to change as few things as possible.
To code, I use Notepad++ and commands : ndk-build && ant debug.

I want to know if there are another ways to do it easier ? Like a specialized IDE ?

I saw Android Studio but I can't find on the doc how to work with the NDK with it, and Google links that has solutions to this looks like "hacks".
There is also Eclipse, quite used with Java, but Android advises to use Android Studio.

Which one do you use ? / What would you recommand ?

And also, where can I find more content to learn about how to deal with files like Android.mk or maybe directly SFML tutorials for Android ?

Thanks in advance :)
Title: Android Environment
Post by: eXpl0it3r on February 23, 2016, 07:36:49 am
The Android Studio is also Java oriented.
Some have been using Visual Studio 2015, but I have no idea how it works for Android. ;)
Title: Re: Android Environment
Post by: Cmdu76 on February 23, 2016, 11:34:35 am
Thank you for this quick answer.

I just googled it and it seems to be like what I want :)

Anyway, if some people can post their way to do it, it would be great to have few options to choose in.
Title: Re: Android Environment
Post by: ChronicRat on February 24, 2016, 02:08:23 pm
I have no idea how it works for Android. ;)
Perfectly. =)
Title: Re: Android Environment
Post by: 1aam2am1 on February 24, 2016, 06:14:40 pm
Android studio and eclipse support NDK
Title: Re: Android Environment
Post by: ast on March 03, 2016, 09:50:34 pm
You can install ndk to android studio. The selection is in menus or buttons, sdk manager if I recall correctly. After that it is possible to build ndk sample projects. This worked out out-of-the-box for me. But I do not know how to build sfml project with android studio or is it feasible at all. All the tutorials point to the standalone sdk and ndk. But the recent android documentation tells that android studio is the preferred way of building for android.

Best regards,
ast