libhv icon indicating copy to clipboard operation
libhv copied to clipboard

[MacOS] Failed to compile for Android - ERROR: Failed to create toolchain.

Open bravepiper opened this issue 3 years ago • 1 comments

It failed when I tried to compile the Android library following the steps of BUILD.md, "ERROR: Failed to create toolchain." message will be shown. I also tried different NDK version like android-ndk-r21d etc. but it still failed

I'm not sure how to address that, can anyone point it out? thanks.

1. configure the NDK in the .zshrc file

export NDK_ROOT=~/Downloads/21.0.6113669

2. run command in the Terminal

MacBook-Pro build % sudo $NDK_ROOT/build/tools/make-standalone-toolchain.sh --arch=arm   --platform=android-21 --install-dir=/opt/ndk/arm
Password:
HOST_OS=darwin
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=darwin-x86_64
HOST_NUM_CPUS=4
BUILD_NUM_CPUS=8
ERROR: Failed to create toolchain.

bravepiper avatar Jan 11 '23 14:01 bravepiper

This is an ndk installation error, you should go to stackoverflow for a solution, not here.

ithewei avatar Jan 12 '23 06:01 ithewei