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
3k stars 465 forks source link

rk3588交叉编译问题:collect2: error: ld returned 1 exit status #2282

Open catofyuanyuan opened 1 year ago

catofyuanyuan commented 1 year ago

温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度


环境

rk3588编译问题

sudo make -j8 编译运行至100%,出现问题如下: ... [ 99%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/vision/visualize/visualize.cc.o [ 99%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/pipeline/pptinypose/pipeline.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:3098: libfastdeploy.so.1.0.7] Error 1 make[1]: [CMakeFiles/Makefile2:148: CMakeFiles/fastdeploy.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

catofyuanyuan commented 1 year ago

已经解决 -DENABLE_ORT_BACKEND=ON需要设置为OFF

hedexiaodiao commented 11 months ago

请问以上编译命令中的gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu是怎么获取的呢?按照仓库文档里提供下载的gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu在x86 ubuntu20.04进行交叉编译时,会报错 /usr/bin/ld: /home/FastDeploy/build/fastdeploy-0.0.0/lib/libfastdeploy.so: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status