Files
FastDeploy/docs/cn/faq/rknpu2/issues.md
Hu Chuqi e2de3f36d3 [Doc] Add English version of some documents (#1221)
* Update README_CN.md

* Create README.md

* Update README.md

* Create README_CN.md

* Update README.md

* Update README_CN.md

* Update README_CN.md

* Create README.md

* Update README.md

* Update README_CN.md

* Create README.md

* Update README.md

* Update README_CN.md

* Rename examples/vision/faceid/insightface/rknpu2/cpp/README.md to examples/vision/faceid/insightface/rknpu2/README_EN.md

* Rename README_CN.md to README.md

* Rename README.md to README_EN.md

* Rename README.md to README_CN.md

* Rename README_EN.md to README.md

* Create build.md

* Create environment.md

* Create issues.md

* Update build.md

* Update environment.md

* Update issues.md

* Update build.md

* Update environment.md

* Update issues.md
2023-02-06 11:11:00 +08:00

46 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[English](../../../en/faq/rknpu2/issues.md) | 中文
# RKNPU2常见问题合集
在使用FastDeploy的过程中大家可能会碰到很多的问题这个文档用来记录已经解决的共性问题方便大家查阅。
## 导航
- [动态链接库链接问题](#动态链接库链接问题)
## 动态链接库链接问题
### 关联issue
- [Issue 870](https://github.com/PaddlePaddle/FastDeploy/issues/870)
### 问题描述
在编译的过程中没有出现问题,但是运行程序时出现以下报错
```text
error while loading shared libraries: libfastdeploy.so.0.0.0: cannot open shared object file: No such file or directory
```
### 分析原因
链接器ld提示找不到库文件。ld默认的目录是/lib和/usr/lib如果放在其他路径也可以需要让ld知道库文件所在的路径。
### 解决方案
**临时解决方法**
临时解决方法对系统没有影响,但是仅在当前打开的终端时生效,关闭终端后,这个配置会失效。
```bash
source PathToFastDeploySDK/fastdeploy_init.sh
```
**永久解决方案**
临时解决方法解决方案在开关终端后会失效,因为每一次重新打开终端运行程序时,都需要重新输入命令。如果您不想每一次运行程序都需要运行一次代码,可以执行以下代码:
```bash
source PathToFastDeploySDK/fastdeploy_init.sh
sudo cp PathToFastDeploySDK/fastdeploy_libs.conf /etc/ld.so.conf.d/
sudo ldconfig
```
执行后配置文件将写入系统,刷新后即可让系统找到库的位置。