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
2.89k stars 451 forks source link

error while loading shared libraries: libfastdeploy.so.0.0.0: cannot open shared object file: No such file or directory #870

Closed MrMzl closed 1 year ago

MrMzl commented 1 year ago

环境

编译流程

按照下面链接中的编译c++ SDK执行 https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/build_and_install/rknpu2.md cd FastDeploy firefly@firefly:~/FastDeploy/build$ cmake .. -DENABLE_ORT_BACKEND=ON -DENABLE_RKNPU2_BACKEND=ON -DENABLE_VISION=ON -DRKNN2_TARGET_SOC=RK356X -DCMAKE_INSTALL_PREFIX=${PWD}/fastdeploy-0.0.3 firefly@firefly:~/FastDeploy/build$ make -j8 firefly@firefly:~/FastDeploy/build$ make install 上述编译流程均成功

问题描述

jiangjiajun commented 1 year ago

试下执行

source  /Path/To/fastdeploy-cpp-sdk/fastdeploy_init.sh

然后再执行编译后的二进制文件

MrMzl commented 1 year ago

firefly@firefly:~/FastDeploy/scripts$ source fastdeploy_init.sh =============== Information ====================== FastDeploy Library Path: /home/firefly/FastDeploy/scripts/fastdeploy_init.sh Platform: Linux

[Execute] Will try to export all the library directories to environments, if not work, please try to export these path by your self. 执行后运行infer_picidet示下,仍然报之前的错误提示。 firefly@firefly:~/FastDeploy/examples/vision/detection/paddledetection/rknpu2/cpp/build/install$ ./infer_picodet ./infer_picodet: error while loading shared libraries: libfastdeploy.so.0.0.0: cannot open shared object file: No such file or directory

Zheng-Bicheng commented 1 year ago

您好,make install 后在install目录下会生成lib目录,里面包含了链接需要的所有动态库,输入以下命令指定动态链接库的位置

export LD_LIBRARY_PATH=./lib
MrMzl commented 1 year ago

收到,感谢回复,该问题已解决