Unable to compile DS4.0 source files under C++ 11

My apologies if this has been discussed and answered.

I’m unable to compile two source files under


using the g++ compiler. The errors were easy enough to fix in my local copies, but any chance this could be resolved in a future distribution?


deepstream_osd_bin.c there are a number of cases similar to

/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_osd_bin.c: In function 'gboolean create_osd_bin(NvDsOSDConfig*, NvDsOSDBin*)':
/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_osd_bin.c:112:1: error: jump to label 'done' [-fpermissive]
/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_osd_bin.c:41:10: note:   from here
     goto done;
/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_osd_bin.c:81:9: note:   crosses initialization of 'guint clk_color'
   guint clk_color =
/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_osd_bin.c:61:20: note:   crosses initialization of 'GstCapsFeatures* feature'
   GstCapsFeatures *feature = NULL;


/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_secondary_gie_bin.c: In function 'gboolean create_secondary_gie_bin(guint, guint, NvDsGieConfig*, NvDsSecondaryGieBin*)':
/opt/nvidia/deepstream/deepstream-4.0/sources/apps/apps-common/src/deepstream_secondary_gie_bin.c:346:33: error: invalid conversion from 'int' to 'GstPadProbeType' [-fpermissive]

Thank you to report this issue. We use “gcc” in default. We will make “g++” work in the next version.

gcc command is not working for me. Please help me to compile the source file.

$ gcc -o deepstream_config_file_parser deepstream_config_file_parser.c

deepstream_config_file_parser.c:23:10: fatal error: deepstream_common.h: No such file or directory
 #include "deepstream_common.h"

Hi malith,

Please help to open a new topic for your own issue.