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.89k stars 1.6k forks source link

ubuntu 22.04 x64 编译paddle-lite x86出错 lite/CMakeFiles/publish_inference.dir/rule #10510

Open XinMon44521 opened 1 month ago

XinMon44521 commented 1 month ago

[ 6%] Completed 'extern_protobuf' [ 6%] Built target extern_protobuf CMakeFiles/Makefile2:651: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:300: recipe for target 'publish_inference' failed make: [publish_inference] Error 2 总是进行到这步出错,https://github.com/PaddlePaddle/Paddle-Lite/issues/5299这个解决方法我已经试过了,重编译后报相同的错误 执行的命令为./lite/tools/build_linux.sh --arch=x86 --with_python=ON --with_log=ON

csy0225 commented 1 month ago

这个一般都是下载第三方库时引起的错误,下载时,可以先把代码目录下面(不是 build 目录)的 third-party 删除掉,在尝试编译。

csy0225 commented 1 month ago

然后可以确认下您的网络环境是否能够单独下载相应的第三方库