Skip to content

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

P
Paddle-Lite
  • 项目概览

PaddlePaddle / Paddle-Lite

通知 337
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 7月 12, 2018 by saxon_zh@saxon_zhGuest

在使用Docker编译android的paddle-mobile库的时候报错

Created by: yeyupiaoling

我使用的是Docker,在make的时候报一下错误:

root@0976bda5e67d:/paddle-mobile# make
/usr/bin/cmake -H/paddle-mobile -B/paddle-mobile --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /paddle-mobile/CMakeFiles /paddle-mobile/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/paddle-mobile'
make -f CMakeFiles/paddle-mobile.dir/build.make CMakeFiles/paddle-mobile.dir/depend
make[2]: Entering directory '/paddle-mobile'
cd /paddle-mobile && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /paddle-mobile /paddle-mobile /paddle-mobile /paddle-mobile /paddle-mobile/CMakeFiles/paddle-mobile.dir/DependInfo.cmake --color=
Scanning dependencies of target paddle-mobile
make[2]: Leaving directory '/paddle-mobile'
make -f CMakeFiles/paddle-mobile.dir/build.make CMakeFiles/paddle-mobile.dir/build
make[2]: Entering directory '/paddle-mobile'
[  1%] Building CXX object CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o
/opt/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++  --target=armv7-none-linux-androideabi --gcc-toolchain=/opt/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/opt/android-ndk-r17b/sysroot  -DARMV7 -DCONCAT_OP -DCONV_OP -DELEMENTWISEADD_OP -DENABLE_EXCEPTION -DFUSION_CONVADD_OP -DFUSION_CONVADD_RELU_OP -DFUSION_FC_OP -DLRN_OP -DMUL_OP -DPADDLE_MOBILE_CPU -DPADDLE_MOBILE_DEBUG -DPADDLE_MOBILE_PROFILE -DPADDLE_MOBILE_USE_OPENMP -DPOOL_OP -DRELU_OP -Dpaddle_mobile_EXPORTS -I/paddle-mobile/src  -std=c++14 -O3 -s -isystem /opt/android-ndk-r17b/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=14 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -mfpu=neon -Wa,--noexecstack -Wformat -Werror=format-security   -fopenmp -llog -g -DNDEBUG -fPIC   -fexceptions -o CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o -c /paddle-mobile/src/framework/operator.cpp
clang++: warning: -llog: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
In file included from /paddle-mobile/src/framework/operator.cpp:15:
/paddle-mobile/src/framework/operator.h:17:10: fatal error: 'map' file not found
#include <map>
         ^~~~~
1 error generated.
CMakeFiles/paddle-mobile.dir/build.make:65: recipe for target 'CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o' failed
make[2]: *** [CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o] Error 1
make[2]: Leaving directory '/paddle-mobile'
CMakeFiles/Makefile2:70: recipe for target 'CMakeFiles/paddle-mobile.dir/all' failed
make[1]: *** [CMakeFiles/paddle-mobile.dir/all] Error 2
make[1]: Leaving directory '/paddle-mobile'
Makefile:86: recipe for target 'all' failed
make: *** [all] Error 2
root@0976bda5e67d:/paddle-mobile# 

不知道是不是我进入镜像的方式的问题,我使用的命令如下,因为官方的命令我执行不了,有错:

docker run -it -v $PWD:/paddle-mobile paddle-mobile:dev
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle-Lite#558
渝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