生成运行环境sudo bash ./build-linux_RK3588.sh时报错
/usr/bin/ld:/home/orangepi/rknpu2-master/examples/rknn_yolov5_demo/../3rdparty/mpp/Linux/aarch64/librockchip_mpp.so: file format not recognized; treating as linker script
/usr/bin/ld:/home/orangepi/rknpu2-master/examples/rknn_yolov5_demo/../3rdparty/mpp/Linux/aarch64/librockchip_mpp.so:0: syntax error
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rknn_yolov5_video_demo.dir/build.make:164: rknn_yolov5_video_demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/rknn_yolov5_video_demo.dir/all] Error 2
原因:如题提示/3rdparty/mpp/Linux/aarch64/librockchip_mpp.so: file format not recognized; treating as linker script是因为librockchip_mpp.so这个文件夹指向了一个空文件夹
解决方法:把librockchip_mpp.so删除,把librockchip_mpp.so.0重命名为
librockchip_mpp.so
运行,完成!