Files
FastDeploy/docs/en/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

48 lines
1.5 KiB
Markdown

English | [中文](../../../cn/faq/rknpu2/issues.md)
# RKNPU2 FAQs
This document collects the common problems when using FastDeploy.
## Navigation
- [Link issues in dynamic link library](#动态链接库链接问题)
## Link issues in dynamic link library
### Association issue
- [Issue 870](https://github.com/PaddlePaddle/FastDeploy/issues/870)
### Problem Description
No problem during compiling, but the following error is reported when running the program
```text
error while loading shared libraries: libfastdeploy.so.0.0.0: cannot open shared object file: No such file or directory
```
### Analysis
The linker ld indicates that the library file cannot be found. The default directories for ld are /lib and /usr/lib.
Other directories are also OK, but you need to let ld know where the library files are located.
### Solutions
**Temporary solution**
This solution has no influence on the system, but it only works on the current terminal and fails when closing this terminal.
```bash
source PathToFastDeploySDK/fastdeploy_init.sh
```
**Permanent solution**
The temporary solution fails because users need to retype the command each time they reopen the terminal to run the program. If you don't want to constantly run the code, execute the following code:
```bash
source PathToFastDeploySDK/fastdeploy_init.sh
sudo cp PathToFastDeploySDK/fastdeploy_libs.conf /etc/ld.so.conf.d/
sudo ldconfig
```
After execution, the configuration file is written to the system. Refresh to let the system find the library location.