Libnvdsgst_infer.so: undefined symbol: nvds_add_user_meta_to_roi

python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_720p.mp4
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

(python3:10862): GStreamer-WARNING **: 13:23:18.872: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so’: /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so: undefined symbol: nvds_add_user_meta_to_roi
Unable to create pgie
Creating EGLSink

Playing file /opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_720p.mp4
Traceback (most recent call last):
File “deepstream_test_1.py”, line 261, in
sys.exit(main(sys.argv))
File “deepstream_test_1.py”, line 198, in main
pgie.set_property(‘config-file-path’, “dstest1_pgie_config.txt”)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’


deepstream-app all can run.
cuda 12.0.300
tensort 8.0.1.6
cudnn 8.2.1.32
opencv 4.1.1
jetpack 4.6

Have you recompiled nvinfer? Have you modified the Makefile?

In the /opt/nvidia/deepstream/deepstream/lib/ directory, does libnvds_meta.so exist?

Try running the script below

sudo /opt/nvidia/deepstream/deepstream/install.sh

I have recompiled nvinfer and modified the Makefile.
Remain to be solved!

Which model of jetson are you using? What is the version of Deepstream?

Please try the solution I provided above first.
Also, have you installed pyds and its dependencies correctly?

deepstream-6.0
nvidia@nx:~/Desktop/dl/deepstream_python_apps-1.1.0/apps/deepstream-test1$ python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_720p.mjpeg
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

(python3:16368): GStreamer-WARNING **: 16:11:42.147: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so’: /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so: undefined symbol: nvds_add_user_meta_to_roi
Unable to create pgie
Creating EGLSink

Playing file /opt/nvidia/deepstream/deepstream-6.0/samples/streams/sample_720p.mjpeg
Traceback (most recent call last):
File “deepstream_test_1.py”, line 261, in
sys.exit(main(sys.argv))
File “deepstream_test_1.py”, line 198, in main
pgie.set_property(‘config-file-path’, “dstest1_pgie_config.txt”)
AttributeError: ‘NoneType’ object has no attribute 'set_property

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

As I mentioned above, you’d better check if libnvds_meta is missing first.

What does the output of the following command look like?

ldd /opt/nvidia/deepstream/deepstream/lib/gst-plugins/libnvdsgst_infer.so

How did you modify the makefile? Generally speaking, it should be like the following

/opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvinfer/Makefile

LIBS := -shared -Wl,-no-undefined \
	-L/usr/local/cuda-$(CUDA_VER)/lib64/ -lcudart

LIBS+= -L$(LIB_INSTALL_DIR) -lnvdsgst_helper -lnvdsgst_customhelper -lnvdsgst_meta -lnvds_meta \
       -lnvds_infer -lnvbufsurface -lnvbufsurftransform -ldl -lpthread -lyaml-cpp \
       -lcuda -Wl,-rpath,$(LIB_INSTALL_DIR)

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