ndk版本:r16b
分支:v1.3.0
操作系统:mac 13.0
cmake版本:3.23.0
本地编译输出xlog so资源时报错,控制台错误信息如下:
CMake Error at comm/CMakeLists.txt:6 (project):
The CMAKE_C_COMPILER:
/Users/name/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at comm/CMakeLists.txt:6 (project):
The CMAKE_CXX_COMPILER:
/Users/name/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
这个问题要如何解决呢?感谢
1条答案
按热度按时间zed5wv101#
在master分支下,ndk用r20b编译正常,但切到v1.3.0并使用r16b就失败了