
* 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
1.5 KiB
English | 中文
RKNPU2 FAQs
This document collects the common problems when using FastDeploy.
Navigation
Link issues in dynamic link library
Association issue
Problem Description
No problem during compiling, but the following error is reported when running the program
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.
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:
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.