RK3588 系列之3—rknn使用过程中遇到的bug
- 1.librockchip_mpp.so: file format not recognized; treating as linker scrip
- 2.Could not find a package configuration file provided by "OpenCV" with any of the following names
- 参考文献
1.librockchip_mpp.so: file format not recognized; treating as linker scrip
librockchip_mpp.so
存在于https://github.com/rockchip-linux/rknpu2/tree/master/examples/3rdparty/mpp/Linux/aarch64。在使用官方demo进行编译时,发现出了标题中的错误。
解决办法,参考[1],在官方开发板中找到该文件,并将库文件对应替换。
find / -name "librockchip_mpp.so"
#/usr/lib/librockchip_mpp.so
2.Could not find a package configuration file provided by “OpenCV” with any of the following names
CMakeLists.txt中find_package前加入OpenCV路径:
set(OpenCV_DIR ~/rknn/3rdparty/opencv/opencv-linux-aarch64/share/OpenCV)
find_package(OpenCV REQUIRED)
此路径中存在OpenCVConfig.cmake。
参考文献
[1] 编译luckfox_pico_rtsp_yolov5报错librockchip_mpp.so: file format not recognized; treating as linker scrip