Undefined reference to `cuGraphicsEGLRegisterImage’

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version
deepstream 6.1
• Issue Type
questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
When I use nvcr.io/nvidia/deepstream:6.1-devel docker image to compile gst-nvinfer plugin, it works fine.Then I built a new image based on this image, and used the new one to compile gst-nvinfer on the same host machine,I got error like this:

/usr/bin/ld: gstnvinfer_allocator.o: in function `gst_nvinfer_allocator_alloc(_GstAllocator*, unsigned long, _GstAllocationParams*)':
gstnvinfer_allocator.cpp:(.text+0x42b): undefined reference to `cuGraphicsEGLRegisterImage'
/usr/bin/ld: gstnvinfer_allocator.cpp:(.text+0x493): undefined reference to `cuGraphicsResourceGetMappedEglFrame'
/usr/bin/ld: gstnvinfer_allocator.o: in function `gst_nvinfer_allocator_free(_GstAllocator*, _GstMemory*)':
gstnvinfer_allocator.cpp:(.text+0x618): undefined reference to `cuGraphicsUnregisterResource'

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
Here’s my Dockerfile:

FROM nvcr.io/nvidia/deepstream:6.1-devel
RUN echo "test"

And there’s no nvidia-docker-runtime or gpu driver on my host machine, only cuda, I don’t think which is necessary since I could use nvcr.io/nvidia/deepstream:6.1-devel to build gst-nvinfer plugin on the same machine.

1.Do you use the same Makefile to build the lib?
2.Could you try to use nvcr.io/nvidia/deepstream:6.1-devel docker to build your own docker?

1.Yes,the same Makefile and the same code in /opt/nvidia/deepstream/deepstream-6.1/sources/gst-plugins/gst-nvinfer.
2.The base image I provided is exactly nvcr.io/nvidia/deepstream:6.1-devel, I just retagged it.

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

I have tried your dockerfile in my enviroment. It works fine. We sugget you install the dependent software of the matching version.
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html#id6

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