在树莓派3b上编译paddlelite 出的问题 按照wiki上面编译ndk
Created by: LilyCaiZL
树莓派 ubuntu 18.04 64位 arm Linux 裸机编译paddlelite ndk是按照wiki里面curl来 的
输入的命令是这样的
./lite/tools/build.sh --arm_os=android --arm_abi=armv8 --arm_lang=gcc --android_stl=c++_static full_publish
报错是这样的,输入ndk-build的时候报错是ERROR: Unknown host CPU architecture: aarch64
The CMAKE_CXX_COMPILER:
/opt/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86/bin/aarch64-linux-android-g++
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.
CMake Error at CMakeLists.txt:31 (project):
The CMAKE_C_COMPILER:
/opt/android-ndk-r17c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86/bin/aarch64-linux-android-gcc
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.
-- Configuring incomplete, errors occurred!
See also "/home/cai/Paddle-Lite/build.lite.android.armv8.gcc/CMakeFiles/CMakeOutput.log".
See also "/home/cai/Paddle-Lite/build.lite.android.armv8.gcc/CMakeFiles/CMakeError.log".
root@cai-desktop:/home/cai/Paddle-Lite# ndk-build
ERROR: Unknown host CPU architecture: aarch64
root@cai-desktop:/home/cai/Paddle-Lite# ^C
root@cai-desktop:/home/cai/Paddle-Lite# $HOST_ARCH
root@cai-desktop:/home/cai/Paddle-Lite# ^C
root@cai-desktop:/home/cai/Paddle-Lite# HOST_ARCH
HOST_ARCH: command not found
root@cai-desktop:/home/cai/Paddle-Lite# uname -m
aarch64```
另外我想问一下,我是要编译树莓派里面的arm Linux,为啥要安装Android的东西??我操作有问题吗??因为我很多东西不理解