源码编译出错
Created by: Carter-1998
在Ubuntu18.04.3系统下,按照源码编译的流程进行配置后,进行tiny_publish 的编译报错如下-- Found Paddle host system: ubuntu, version: 18.04.3 -- Found Paddle host system's CPU: 8 cores CMake Error at cmake/cross_compiling/android.cmake:26 (message): Must set ANDROID_NDK or env NDK_ROOT Call Stack (most recent call first): cmake/cross_compiling/preproject.cmake:47 (include) CMakeLists.txt:30 (include)
-- Configuring incomplete, errors occurred! 错误显示为ANDROID——NDK环境的问题,输入下面代码后
~/.bashrc
5. Add environment ${NDK_ROOT} to echo "export NDK_ROOT=/opt/android-ndk-r17c" >> ~/.bashrc source ~/.bashrc 依然报同样的错误