• Hardware Platform: HPE Proliant-DL-385-GEN-10-Plus • Graphics Card : Tesla T4 • OS : Ubuntu 18.04 (64-bit) • NVIDIA GPU Driver Version : 450.102.04 • Cuda Version : 10.2 • cuDNN Version: 8.0.2.39 • TensorRT Version : 7.1.3.4 • DeepStream Version : 5.0
• Issue Type: Unable to do generate libnvdsinfer_custom_impl_lpr.so file • How to reproduce the issue ? Reproduce:
Step-1: Clone the deepstream_lpr_app from git repository inside /opt/nvidia/deepstream/deepstream-5.0/sources
Step-2: cd deepstream_lpr_app/nvinfer_custom_lpr_parser → make
After giving make command the following error occurs:
g++ -o libnvdsinfer_custom_impl_lpr.so nvinfer_custom_lpr_parser.cpp -Wall -Werror -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream-5.0/sources/includes -Wl,–start-group -lnvinfer -lnvparsers -Wl,–end-group
/usr/bin/ld: cannot find -lnvinfer
/usr/bin/ld: cannot find -lnvparsers
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target ‘libnvdsinfer_custom_impl_lpr.so’ failed
make: *** [libnvdsinfer_custom_impl_lpr.so] Error 1
• Requirement details I am working on this machine for doing the LPR model training…
That’s the problem, you didn’t install these libs in your system lib path, so compiler cannot find it.
It’s just a basic compiler problem.
2 options to fix it:
Add -L to specify the search path for compiler
install these lib in your system lib path