Unknown type name 'NvDsObjEncCtxHandle' in deepstream-7.0

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) RTX4080
• DeepStream Version 7.0
Put this
NvDsObjEncCtxHandle obj_ctx_handle; into deepstream_gie.h.

Then I have this errors as

file included from ../../apps-common/includes/deepstream_primary_gie.h:21,
                 from deepstream_app.h:36,
                 from deepstream_app_config_parser.c:23:
../../apps-common/includes/deepstream_gie.h:87:3: error: unknown type name 'NvDsObjEncCtxHandle'
   87 |   NvDsObjEncCtxHandle obj_ctx_handle;
      |   ^~~~~~~~~~~~~~~~~~~
make: *** [Makefile:70: deepstream_app_config_parser.o] Error 1

I did the same thing for deepstream-6.0 and it was fine.
I need dsexample->obj_ctx_handle for save jpeg images in deepstream
nvds_obj_enc_process (dsexample->obj_ctx_handle, &frameData, surface, NULL, frame_meta); as discussed here.

Add #include "nvds_obj_encode.h" in deepstream_primary_gie.h .

1 Like

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