Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to change ANDROID_STL option?  (Read 2932 times)

0 Members and 1 Guest are viewing this topic.

ToyAuthor

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
How to change ANDROID_STL option?
« 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)
« Last Edit: July 01, 2016, 07:40:56 am by ToyAuthor »

ToyAuthor

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Re: How to change ANDROID_STL option?
« Reply #1 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.
« Last Edit: July 01, 2016, 02:01:56 pm by ToyAuthor »

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: How to change ANDROID_STL option?
« Reply #2 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.

ToyAuthor

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Re: How to change ANDROID_STL option?
« Reply #3 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.

 

anything