1. /bin/sh: cmake: command not found
其实就是没有找到cmake, 把cmake添加到环境变量中, 使其生效就可以了。
# 配置cmake
export PATH="/home/CV-deeplearning/cmake-3.18.1-Linux-x86_64/bin:$PATH"
参考: https://zhidao.baidu.com/question/813991431376924892.html
2. SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID
意思就是找不到SDK,需要设置以下环境变量。
解决方法:在~/.bashrc后面加入下面的语句,并使其生效即可。
# 配置android_home
export ANDROID_HOME=/home/CV-deeplearning/Android/Sdk
参考:https://blog.youkuaiyun.com/niuba123456/article/details/81836393
3. To build this project, accept the SDK license agreements and install the missing components
意思就是SDK license中的一些条款需要你接受
解决办法如下:
(1)cd到SDK路径下tools/bin
~/Android/Sdk/tools/bin
(2) 输入以下命令后,根据提示,多输入几次y,回车。
./sdkmanager --licenses
参考:别人的博客
4. No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
其实就是在NDK的安装路径下,toolchains/ 目录下缺少了mips64el-linux-android
解决办法:在该目录下执行命令,问题就解决了。
ln -sf aarch64-linux-android-4.9 mips64el-linux-android
参考:https://blog.youkuaiyun.com/qq_24118527/article/details/82867864
相关博客:通过MACE在Android手机上部署深度学习模型