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

基于Paddle Lite框架下的编译问题 #10508

Open weibinlee08 opened 2 months ago

weibinlee08 commented 2 months ago

基于Paddle Lite框架下的编译问题 问题: 基于RK3399的硬件,在ARM Linux 环境下编译ARM Linux 的Paddle Lite 源码,参数with_python、with_extra、with_cv设置 ON,其它值默认。 配置报错如下: CMakeFiles/Makefile2:425: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:222: recipe for target 'publish_inference' failed make: [publish_inference] Error 2 (在编译Paddle Lite源码时遇到错误,错误信息表明在构建publish_inference目标时失败了。)

- 版本、环境信息:    1)Paddle Lite 版本:Paddle Lite v2.6及以上版本    2)Host 环境:Ubuntu 18.04    3)运行设备环境:RK3399   - 编译/安装方式信息: 1)pip 安装/docker 安装 2)本地编译:编译命令如下  # 下载 Paddle Lite 源码并切换到发布分支,如 develop git clone https://github.com/PaddlePaddle/Paddle-Lite.gitcd Paddle-Lite && git checkout develop

删除 third-party 目录,编译脚本会自动从国内 CDN 下载第三方库文件# rm -rf third-party

执行编译脚本

./lite/tools/build_linux.sh

- 复现信息:如为报错,如上即为复现,按照官方的步骤执行https://www.paddlepaddle.org.cn/lite/v2.12/source_compile/arm_linux_compile_arm_linux.html - 问题描述: 基于RK3399的硬件,在ARM Linux 环境下编译ARM Linux 的Paddle Lite 源码,参数with_python、with_extra、with_cv设置 ON,其它值默认。 配置报错如下: CMakeFiles/Makefile2:425: recipe for target 'lite/CMakeFiles/publish_inference.dir/rule' failed make[1]: [lite/CMakeFiles/publish_inference.dir/rule] Error 2 Makefile:222: recipe for target 'publish_inference' failed make: [publish_inference] Error 2 (在编译Paddle Lite源码时遇到错误,错误信息表明在构建publish_inference目标时失败了。)

weibinlee08 commented 2 months ago

感谢各位老师和社区贡献者解答,谢谢

shentanyue commented 1 month ago

您好,问题是已经解决了吗?

loeb-chen commented 1 month ago

您好,问题是已经解决了吗?