Missing header file <gst/cuda/gstcudamemory.h>

I am currently trying to compile a project that uses the function ‘gst_is_cuda_memory’, however, when compiling, this function is not found.

From what I understand, this function can be found in <gst/cuda/gstcudamemory.h>, however, this file is not in any of the standard include location.

I have already installed cuda and all related gstreamer packages from apt, including the libplugin-dev libraries.

Can anyone point me towards a fix to this problem?
Could I be missing any dependencies related to both gstreamer and nvcodec?
Is this header file still in use?


it looks like you’ll need gstcudamemory.h which appears to be part of gst-plugins-bad/sys/nvcodec

Thank you,

But should this not be already included when I install libplugin-dev via apt?

perhaps, I’m not an expert on building video codec applications. Perhaps someone else here on the video processing forum will know.

I have GStreamer 1.20.3 installed, with the following command:

apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl \
gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

I have cuda-11.7 installed.

What could I be missing? Since I don’t have anything under :


You already have

installed so the header file should exist somewhere. I suggest you search for it using

dpkg -L gstreamer1.0-plugins-bad

and add that to the include directive in your build command.

Hope that helps.