clion+ndk-r19
报错:
ld: unknown option: --sysroot=/Users//Library/Android/sdk/ndk-bundle/platforms/
解决办法
https://gitlab.kitware.com/cmake/cmake/issues/18739
- x86 or x86_64
添加 TOOLCHAIN_ROOT := $(call get-toolchain-root,llvm) 到下面这两个文件中
build/core/toolchains/x86-clang/setup.mk
build/core/toolchains/x86_64-clang/setup.mk - arm or aarch64
添加 TOOLCHAIN_ROOT := $(call get-toolchain-root,$(TOOLCHAIN_NAME)-4.9)到下面两个文件中
build/core/toolchains/aarch64-linux-android-clang/setup.mk
build/core/toolchains/arm-linux-androideabi-clang/setup.mk
ok 完事,可以用clion 了
网友评论