PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.94k stars 1.61k forks source link

ubuntu 16.04 x64 编译Paddle-Lite x86错误 #5299

Closed tjzx closed 3 years ago

tjzx commented 3 years ago

ubuntu 16.04 x64执行命令报错 ./lite/tools/build.sh x86 --with_log=OFF --with_cv=ON --with_extra=ON --with_avx=ON

[ 3%] Completed 'extern_gflags' [ 3%] Built target extern_gflags CMakeFiles/Makefile2:824: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:261: recipe for target 'publish_inference' failed make: [publish_inference] Error 2 root@dosmono:/home/dosmono/arm-linux-ocr/Paddle-Lite.x86#

qili93 commented 3 years ago

@tjzx 你可以尝试删除Paddle-Lite下的第三方目录third-party试试,如果还是一样的错误,就需要安装这个文档检查一下你的编译环境,推荐使用docker环境。https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html

tjzx commented 3 years ago

删除Paddle-Lite下的第三方目录third-party后编译通过。 谢谢!!!

chenyangMl commented 1 year ago

@tjzx 你可以尝试删除Paddle-Lite下的第三方目录third-party试试,如果还是一样的错误,就需要安装这个文档检查一下你的编译环境,推荐使用docker环境。https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html

你好, 最新v2.11, x86编译报错. ubuntu16.04, paddlite release/v2.11 编译命令: ./lite/tools/build_linux.sh --arch=x86 已尝试过 删除Paddle-Lite下的第三方目录third-party后编译, 依然同样的位置报错. 请问可以有什么解决办法,或者能关闭 mklml模块?

-- Downloading... done -- extracting... src='/home/kasa/work/tuling_pros/Paddle-Lite/build.lite.linux.x86.gcc/third_party/mklml/src/extern_mklml/Glibc225_vsErf_mklml_lnx_2019.0.1.20181227.tgz' dst='/home/kasa/work/tuling_pros/Paddle-Lite/build.lite.linux.x86.gcc/third_party/mklml/src/extern_mklml' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 12%] No update step for 'extern_mklml' [ 12%] No patch step for 'extern_mklml' [ 12%] No configure step for 'extern_mklml' [ 12%] No build step for 'extern_mklml' [ 13%] Performing install step for 'extern_mklml' [ 13%] Completed 'extern_mklml' [ 13%] Built target extern_mklml CMakeFiles/Makefile2:1375: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:241: recipe for target 'publish_inference' failed make: [publish_inference] Error 2

Zhu-TianYu commented 10 months ago

@tjzx 你可以尝试删除Paddle-Lite下的第三方目录third-party试试,如果还是一样的错误,就需要安装这个文档检查一下你的编译环境,推荐使用docker环境。https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html

你好, 最新v2.11, x86编译报错. ubuntu16.04, paddlite release/v2.11 编译命令: ./lite/tools/build_linux.sh --arch=x86 已尝试过 删除Paddle-Lite下的第三方目录third-party后编译, 依然同样的位置报错. 请问可以有什么解决办法,或者能关闭 mklml模块?

-- Downloading... done -- extracting... src='/home/kasa/work/tuling_pros/Paddle-Lite/build.lite.linux.x86.gcc/third_party/mklml/src/extern_mklml/Glibc225_vsErf_mklml_lnx_2019.0.1.20181227.tgz' dst='/home/kasa/work/tuling_pros/Paddle-Lite/build.lite.linux.x86.gcc/third_party/mklml/src/extern_mklml' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 12%] No update step for 'extern_mklml' [ 12%] No patch step for 'extern_mklml' [ 12%] No configure step for 'extern_mklml' [ 12%] No build step for 'extern_mklml' [ 13%] Performing install step for 'extern_mklml' [ 13%] Completed 'extern_mklml' [ 13%] Built target extern_mklml CMakeFiles/Makefile2:1375: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:241: recipe for target 'publish_inference' failed make: [publish_inference] Error 2

我也遇到这个错误,请问楼主有解决吗

tjzx commented 10 months ago

我参考此方法解决的:https://github.com/PaddlePaddle/Paddle-Lite/issues/5299#issuecomment-1837160938

@tjzx 你可以尝试删除Paddle-Lite下的第三方目录third-party试试,如果还是一样的错误,就需要安装这个文档检查一下你的编译环境,推荐使用docker环境。https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html

你好, 最新v2.11, x86编译报错.ubuntu16.04, paddlite release/v2.11 编译命令: ./lite/tools/build_linux.sh --arch=x86 已尝试过 删除Paddle-Lite下的第三方目录third-party后编译, 依然同样的位置报错.请问可以有什么解决办法,或者能关闭 mklml模块? --下载。。。完成 -- 正在提取...src='/home/kasa/work/tuling_pros/Paddle-Lite/build.lite.linux.x86.gcc/third_party/mklml my life/src/extern_mklove my life/Glibc225_vsErf_mklml_lnx_2019.0.1.20181227.tgz' dst='/home/kasa/work/tuling_pros/Paddle-Lite/build.lite.linux.x86.gcc/third_party/mklml my life/src/extern_mklove my life' -- 提取...[tar xfz] -- 提取...[分析] -- 提取...[重命名] -- 正在提取...[清理] -- 提取...完成 [ 12%] “extern_mklove my life”没有更新步骤 [ 12%] “extern_mklove my life”没有补丁步骤 [ 12%] 没有“extern_mklove my life”的配置步骤 [ 12%] “extern_mklove my life”没有构建步骤 [ 13%] 执行“extern_mklove my life”的安装步骤 [ 13%] 已完成“extern_mklove我的生活”[ 13%] 构建extern_mklove我的生活目标 CMakeFiles/Makefile2:1375:目标“lite/CMakeFiles/publish_inference.dir/rule”的配方失败 make[1]: [lite/CMakeFiles/publish_inference.dir/rule] 错误 2 Makefile:241:目标“publish_inference”的配方失败 make:*** [publish_inference] 错误 2

我也遇到这个错误,请问楼主有解决吗