Ds_detect.cpp:(.text+0x2d8): undefined reference to `NvBufSurfaceMap'

/usr/bin/ld: CMakeFiles/ds_detect.dir/ds_detect.cpp.o: in function osd_sink_pad_buffer_probe(_GstPad*, _GstPadProbeInfo*, void*)': ds_detect.cpp:(.text+0x2d8): undefined reference to NvBufSurfaceMap’
/usr/bin/ld: ds_detect.cpp:(.text+0x4ec): undefined reference to NvBufSurfaceSyncForDevice' /usr/bin/ld: ds_detect.cpp:(.text+0x4fc): undefined reference to NvBufSurfaceUnMap’
collect2: error: ld returned 1 exit status

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

We currently do not officially support Cmaklist. Can you refer to the following Makefile to introduce relevant link libraries?

LIBS+= -L$(LIB_INSTALL_DIR) -lnvdsgst_meta -lnvds_meta \
 -lnvbufsurface -lnvbufsurftransform -lnvdsgst_helper -lnvds_batch_jpegenc \
 -L/usr/local/cuda-$(CUDA_VER)/lib64/ -lcudart \
 -lm -lcuda \

thank you so much

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