Open MrMzl opened 1 year ago
有CPU需求用PaddleLite哈,交叉编译的时候暂时不支持ONNX
有CPU需求用PaddleLite哈,交叉编译的时候暂时不支持ONNX
收到,感谢回复。
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
环境
问题日志及出现问题的操作流程
按照交叉编译文档进行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