资深搬砖人 发表于 2022-3-25 18:06:05

Exception: Can not find dynamic library on RK3588!

在ITX-3588J上运行示例代码/examples/inference_with_lite/test.py,报错:
--> Load RKNN model
done
--> Init runtime environment
E Catch exception when init runtime!
E Traceback (most recent call last):
File "/home/firefly/.local/lib/python3.9/site-packages/rknnlite/api/rknn_lite.py", line 140, in init_runtime
    self.rknn_runtime = RKNNRuntime(root_dir=self.root_dir, target=target, device_id=device_id,
File "rknnlite/api/rknn_runtime.py", line 302, in rknnlite.api.rknn_runtime.RKNNRuntime.__init__
File "rknnlite/api/rknn_runtime.py", line 501, in rknnlite.api.rknn_runtime.RKNNRuntime._load_library
File "rknnlite/api/rknn_runtime.py", line 477, in rknnlite.api.rknn_runtime.RKNNRuntime._get_rknn_api_lib_path
Exception: Can not find dynamic library on RK3588!


Init runtime environment failed





板蓝根 发表于 2022-3-28 11:21:52

安装流程没有报错吗?

板蓝根 发表于 2022-3-28 12:04:17

估计是 RK3588 还没支持 lite,可以先用 C/C++ demo 验证

板蓝根 发表于 2022-3-28 16:51:58

把 librknnrt.so 拷贝到板子的 /usr/lib/      

https://github.com/rockchip-linux/rknpu2/tree/master/runtime/RK3588/Linux/librknn_api/aarch64

资深搬砖人 发表于 2022-4-5 15:41:41

板蓝根 发表于 2022-3-28 16:51
把 librknnrt.so 拷贝到板子的 /usr/lib/      

https://github.com/rockchip-linux/rknpu2/tree/master ...

已经解决,感谢回复!

资深搬砖人 发表于 2022-4-5 15:45:06

认真看文档后的解决方法:
页: [1]
查看完整版本: Exception: Can not find dynamic library on RK3588!