Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle-Lite
  • Issue
  • #1929

P
Paddle-Lite
  • 项目概览

PaddlePaddle / Paddle-Lite

通知 338
Star 4
Fork 1
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 271
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 78
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle-Lite
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 271
    • Issue 271
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 78
    • 合并请求 78
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 8月 30, 2019 by saxon_zh@saxon_zhGuest

在树莓派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的东西??我操作有问题吗??因为我很多东西不理解
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle-Lite#1929
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7