SFML community forums

Help => General => Topic started by: ToyAuthor on July 01, 2016, 06:51:02 am

Title: How to change ANDROID_STL option?
Post by: ToyAuthor on July 01, 2016, 06:51:02 am
Hello everyone!

I try to build a Android App by the following tool.
https://github.com/taka-no-me/android-cmake

And I really made some app without SFML.

But it not support libc++_static/libc++_shared yet.
It can't pass compiler, when I link SFML library.
So I set ANDROID_STL to libstdc++/gnustl_static/gnustl_shared ..., and it don't work too.

Error message still output.
error: undefined reference to 'std::__1::locale::use_facet(std::__1::locale::id&) const'

What sould I do?
Build my own extlibs?(libFLAC.a libfreetype.a ...etc)
Title: Re: How to change ANDROID_STL option?
Post by: ToyAuthor on July 01, 2016, 12:28:48 pm
Wait a minute...

The android.toolchain.cmake in SFML have been modified.
I will try it later.
Title: Re: How to change ANDROID_STL option?
Post by: Mario on July 01, 2016, 04:50:36 pm
Yes, there are some changes (as far as I remember). Although, to be honest, I'm not sure switching the STL build to be used would even work right now. That feature is more or less "work in progress", but I still want to get rid of the whole problematic by linking everything in a slightly different and less complicated way.
Title: Re: How to change ANDROID_STL option?
Post by: ToyAuthor on July 02, 2016, 05:02:07 am
I find something missing at android.toolchain.cmake file in SFML.
SFML just only add c++_shared option in ANDROID_NDK side.
(see BUILD_WITH_ANDROID_NDK and BUILD_WITH_STANDALONE_TOOLCHAIN)

I build it on Linux with standalone toolchain.
That's why I failed.

You can ignore my report, if SFML just only build Android library on Windows.