I tried upgrading the android build to r16b and fixed up the includes, but no luck. Either the android build needs to switch from gcc to clang (which may fix the build) or you need to replace std::to_string with something else. I'd vote for switching to clang, but I'm not up for doing that right now.
Re: r41166 broke the android build by using std::to_string
On mercredi 3 janvier 2018 14:07:46 CET Alan Thomas wrote:
> Sorry about this! I knew it was only a matter of time before I would
> break the build.
> In r41170 I have got rid of std::to_string for now. It's easy enough
> to replace it with CPLString().Printf(...).
I had already encountered this issue with the CAD driver. Switching to clang itself alone doesn't fix the issue, as libstdc++ was still used. It appears from https://stackoverflow.com/questions/17950814/how-to-use-stdstoul-and-stdstoull-in-android/18124627#18124627 that std::to_string() cannot be used with gnu libstdc++. I've thus changed the toolchain to use --stl=libc++, and that worked: