编caffe2的android库出现的问题

来源:互联网 发布:未注册顶级域名 编辑:程序博客网 时间:2024/05/19 19:12

改了下caffe2的代码,跑scripts/build_android.sh时,出现了下面的错误:


There is an error when I compile the build_android.sh:
Building caffe2
CMake Error at third_party/android-cmake/android.toolchain.cmake:616 (message):
Could not find any working toolchain in the NDK. Probably your Android NDK
is broken.
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:95 (include)


网上找半天也没找到相关的解决方案。最后我给ndk卸了,重新装就不会报错了。可能是由于以前的ndk是androidstudio自带下载的缘故吧。

原创粉丝点击