PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
2.9k stars 453 forks source link

RK3568交叉编译过程中设置ENABLE_ORT_BACKEND=ON后编译报错 #1852

Open MrMzl opened 1 year ago

MrMzl commented 1 year ago

环境

问题日志及出现问题的操作流程

按照交叉编译文档进行Fasteploy C++ SDK交叉编译,设置ENABLE_ORT_BACKEND=ON后,cmake成功,执行make -j8,执行到100%后不成功,报下面错误: [ 99%] Building CXX object CMakeFiles/fastdeploy.dir/third_party/optimizer/onnxoptimizer/pass_registry.cc.o [100%] Linking CXX shared library libfastdeploy.so third_libs/install/onnxruntime/lib/libonnxruntime.so: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/fastdeploy.dir/build.make:4466: libfastdeploy.so.1.0.6] Error 1 make[1]: *** [CMakeFiles/Makefile2:201: CMakeFiles/fastdeploy.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

Zheng-Bicheng commented 1 year ago

有CPU需求用PaddleLite哈,交叉编译的时候暂时不支持ONNX

MrMzl commented 1 year ago

有CPU需求用PaddleLite哈,交叉编译的时候暂时不支持ONNX

收到,感谢回复。

danny-zhu commented 8 months ago

ubuntu22.04上交叉编译正常,后面按照文档https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/quick_start/models/cpp.md测试C++部署时,cmake正常,但是make时遇到类似的错误: [ 50%] Building CXX object CMakeFiles/infer_demo.dir/infer_demo.cc.o [100%] Linking CXX executable infer_demo /usr/bin/ld: /xxxx隐藏掉的目录/FastDeploy/build/fastdeploy-0.0.0/lib/libfastdeploy.so: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/infer_demo.dir/build.make:114:infer_demo] 错误 1 make[1]: [CMakeFiles/Makefile2:110:CMakeFiles/infer_demo.dir/all] 错误 2 make: *** [Makefile:91:all] 错误 2