/usr/bin/ld: cannot find -lnvparsers: No such file or directory

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): rtx 4070 Ti
• DeepStream Version: 7.1
• TensorRT Version: 10.3.0.26
• NVIDIA GPU Driver Version (valid for GPU only): 560.35.03

I’m trying to compile nvinfer_custom_lpr_parser. HOwever the below error comes while compiling using the make file:

CC:= g++

CFLAGS:= -Wall -Werror -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations

CFLAGS+= -I/opt/nvidia/deepstream/deepstream/sources/includes

LIBS:= -lnvinfer -lnvparsers

LFLAGS:= -Wl,--start-group $(LIBS) -Wl,--end-group

SRCFILES:= nvinfer_custom_lpr_parser.cpp
TARGET_LIB:= libnvdsinfer_custom_impl_lpr.so

all: $(TARGET_LIB)

$(TARGET_LIB) : $(SRCFILES)
	$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)

clean:
	rm -rf $(TARGET_LIB)

error:

/usr/bin/ld: cannot find -lnvparsers: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: libnvdsinfer_custom_impl_lpr.so] Error 1

Any help is highly appreciated @junshengy

While installing Tensorrt I got this:

eegrab@eegrab:~$ version="10.3.0.26-1+cuda12.5"
eegrab@eegrab:~$ sudo apt-get install libnvinfer-dev=${version} libnvinfer-dispatch-dev=${version} libnvinfer-dispatch10=${version} libnvinfer-headers-dev=${version}
libnvinfer-headers-plugin-dev=${version} libnvinfer-lean-dev=${version} libnvinfer-lean10=${version} libnvinfer-plugin-dev=${version} libnvinfer-plugin10=${version}
libnvinfer-vc-plugin-dev=${version} libnvinfer-vc-plugin10=${version} libnvinfer10=${version} libnvonnxparsers-dev=${version} libnvonnxparsers10=${version} tensorrt-dev=${version}
[sudo] password for eegrab: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libnvinfer-dev is already the newest version (10.3.0.26-1+cuda12.5).
libnvinfer-dispatch10 is already the newest version (10.3.0.26-1+cuda12.5).
libnvinfer-dispatch-dev is already the newest version (10.3.0.26-1+cuda12.5).
libnvinfer-headers-dev is already the newest version (10.3.0.26-1+cuda12.5).
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
libnvinfer-headers-plugin-dev=10.3.0.26-1+cuda12.5: command not found
libnvinfer-vc-plugin-dev=10.3.0.26-1+cuda12.5: command not found

For TRT-10.x, libnvparsers.so has been removed. Please delete the shared library in the Makefile.

Thank You

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.