Fatal error: gstnvdsmeta.h: No such file or directory

im running through docker container IMAGE nvcr.io/nvidia/deepstream 5.1-21.02-base, and i get the below error . kindly assist with the linking library



PKGS:= gstreamer-1.0

OBJS:= $(SRCS:.cpp=.o)

CFLAGS+= -I../../../includes \

        -I /usr/local/cuda-$(CUDA_VER)/include

CFLAGS+= $(shell pkg-config --cflags $(PKGS))

LIBS:= $(shell pkg-config --libs $(PKGS))

LIBS+= -L/usr/local/cuda-$(CUDA_VER)/lib64/ -lcudart \

       -lm -lcuda -lgstrtspserver-1.0 -L$(LIB_INSTALL_DIR) -lnvdsgst_meta -lnvds_meta -lnvdsgst_helper -lm \

g++ -c -o PoC_Bottle.o -I../../../includes -I /usr/local/cuda-11.2/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include PoC_Bottle.cpp
 fatal error: gstnvdsmeta.h: No such file or directory
 #include "gstnvdsmeta.h"
compilation terminated.

i have created a folder called “src” and kept the c++ files

path : /opt/nvidia/deepstream/deepstream-5.1/src

Hi @h9945394143 ,
This looks like a Deepstream issue, recommend you to raise it to respective forum


Any help from the Nvidia team ???

This file should located at /opt/nvidia/deepstream/deepstream-5.1/sources/includes/ folder. Did you checked it?

its not there , is there an command to fill in .!!

Unfortunately, I could not find. You may include all source files in your folder. The base container has only plugins and libraries.

i need few headers files such as gstnvdsmeta.h: … ?? is there any command or i call PULL from base container ?

My deepstream command

xhost +
docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY nvcr.io/nvidia/deepstream:5.1-21.02-base

I tried to download deepstream source file, extract it into /tmp and copy the sources/includes folder into the deepstream folder

apt update
apt install wget
cd /tmp
mkdir deepstream_temp && cd deepstream_temp
wget -O deepstream_sdk_v5.1.0_x86_64.tbz2 https://developer.download.nvidia.com/assets/Deepstream/DeepStream_5.1/deepstream_sdk_v5.1.0_x86_64.tbz2
tar -jxvf deepstream_sdk_v5.1.0_x86_64.tbz2 
cd /opt/nvidia/deepstream/deepstream-5.1
mkdir sources
cp -r /tmp/deepstream_temp/opt/nvidia/deepstream/deepstream-5.1/sources/includes sources/

Hope it works on your setup too
Best regards