Conflicting declaration "type def enum NvDsInferStatus"

Hello everyone, I’m trying to make a custom real-time pose estimation application (ref: GitHub - NVIDIA-AI-IOT/deepstream_pose_estimation: This is a sample DeepStream application to demonstrate a human pose estimation pipeline.), and I want to use the “nvds_rest_server” library as I want it to be able to dynamically change the number of streams based on some condition.

In the “post_process.h” files of the link above, it makes use of “gstnvdsinfer.h” which is called “nvdsinfer.h” The problem is that both “nvds_rest_server.h” and “nvdsinfer.h” have their own declaration of NvDsInferStatus," and both of them have different elements inside.

Note: in nvds_rest_server.h, it has only 2 elements, while “nvdsinfer.h” has 8 elements.

Hardware platform: GPU
Deepstream version: 6.2 (on a Docker container)

Is there anyway to solve this issue?

In order to reproduce this issue, just include nvds_rest_server.h in deepstream_pose_estimation.cpp and then compile.

Any help or suggestions are appreciated.

Could you try to delete the NvDsInferStatus in nvds_rest_server.h, just include “nvdsinfer.h” in the nvds_rest_server.h file?

1 Like

I tried to edit the NvDsInferStatus in nvds_rest_server.h to NvDsInferStatusServer and it’s seem to work!

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