Conan: Android ndk standalone toolchain warnings

Created on 30 Jan 2019  路  5Comments  路  Source: conan-io/conan

To help us debug your issue please explain:

  • [ x] I've read the CONTRIBUTING guide.
  • [ x] I've specified the Conan version, operating system version and any tool that can be relevant.
  • [ x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.

Conan version: 1.11.2
Android Studio: 3.3
NDK: AS bundled

Hi Conan team,

I've followed the official docs about Cross Platform Build for android, it worked well.

But I'm getting WARNINGS when I generate the standalone toolchain:

WARNING:__main__:make_standalone_toolchain.py is no longer necessary. The
$NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin directory contains target-specific scripts that perform
the same task. For example, instead of:

$ python $NDK/build/tools/make_standalone_toolchain.py \
--arch arm --api 21 --install-dir toolchain
$ toolchain/bin/clang++ src.cpp

Instead use:

$ $NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang++ src.cpp

is it dangerous? or should conan update its document to follow up latest NDK release?

I'm using the latest Android Studio 3.3 with NDK bundle.

Most helpful comment

hi @BillHoo
these warnings are completely harmless.
newer Android NDK versions do not require standalone toolchain generation, so you can skip mentioned step, and just use prebuilt standalone toolchain from NDK as noted.
but for compatibility with older NDK versions, conan documentation still describes this step.

All 5 comments

Hi @BillHoo

Not sure about this, I have asked for help of @SSE4 and @uilianries, lets see if they can have a look. Thanks!

hi @BillHoo
these warnings are completely harmless.
newer Android NDK versions do not require standalone toolchain generation, so you can skip mentioned step, and just use prebuilt standalone toolchain from NDK as noted.
but for compatibility with older NDK versions, conan documentation still describes this step.

gotcha, thanks buddy.

Thanks for the feedback! Could we consider this question solved and close the issue?

yes please. thank you

Was this page helpful?
0 / 5 - 0 ratings