Building DeepStream python bindings fails

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only) 5.1.1
• TensorRT Version 8.5.2
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) Building DeepStream python bindings fails
• 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) I followed the readme file (deepstream_python_apps/bindings at v1.1.6 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub)
• Python version 3.8

I am trying to build DeepStream python bindings from scratch locally on NVIDIA Jetson Orin Nano ( I can’t work with docker container nor wheel installation).
I followed the readme file in the DeepStream_python_apps GitHub project (v1.1.6). The gst-python was not installed so I followed the deepstream_python_apps/HOWTO.md at v1.1.6 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub readme file for the installation with keeping in mind the aarch64 platform.
The bindings build till 81% and then throws these errors:

[ 81%] Building CXX object CMakeFiles/pyds.dir/src/bindtrackermeta.cpp.o
In file included from /opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/include/pyds.hpp:34,
                 from /opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/include/bind/bindtrackermeta.hpp:22,
                 from /opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:21:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
  287 |     NvDsInferDims dims = {0};
      |                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:29:20: error: ‘NvDsTargetMiscDataFrame’ was not declared in this scope
   29 |         py::class_<NvDsTargetMiscDataFrame>(m, "NvDsTargetMiscDataFrame",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:29:43: error: template argument 1 is invalid
   29 |         py::class_<NvDsTargetMiscDataFrame>(m, "NvDsTargetMiscDataFrame",
      |                                           ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:32:45: error: ‘NvDsTargetMiscDataFrame’ is not a class, namespace, or enumeration
   32 |                 .def_readwrite("frameNum", &NvDsTargetMiscDataFrame::frameNum)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:33:42: error: ‘NvDsTargetMiscDataFrame’ is not a class, namespace, or enumeration
   33 |                 .def_readwrite("tBbox", &NvDsTargetMiscDataFrame::tBbox)
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:34:47: error: ‘NvDsTargetMiscDataFrame’ is not a class, namespace, or enumeration
   34 |                 .def_readwrite("confidence", &NvDsTargetMiscDataFrame::confidence)
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:35:40: error: ‘NvDsTargetMiscDataFrame’ is not a class, namespace, or enumeration
   35 |                 .def_readwrite("age", &NvDsTargetMiscDataFrame::age)
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:39:34: error: ‘NvDsTargetMiscDataFrame’ is not captured
   39 |                          return (NvDsTargetMiscDataFrame *) data;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:38:23: note: the lambda has no capture-default
   38 |                      [](void *data) {
      |                       ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:29:20: note: ‘<typeprefixerror>NvDsTargetMiscDataFrame’ declared here
   29 |         py::class_<NvDsTargetMiscDataFrame>(m, "NvDsTargetMiscDataFrame",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:39:59: error: expected primary-expression before ‘)’ token
   39 |                          return (NvDsTargetMiscDataFrame *) data;
      |                                                           ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:39:60: error: expected ‘;’ before ‘data’
   39 |                          return (NvDsTargetMiscDataFrame *) data;
      |                                                            ^~~~~
      |                                                            ;
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:39:61: warning: statement has no effect [-Wunused-value]
   39 |                          return (NvDsTargetMiscDataFrame *) data;
      |                                                             ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:45:20: error: ‘NvDsTargetMiscDataObject’ was not declared in this scope
   45 |         py::class_<NvDsTargetMiscDataObject>(m, "NvDsTargetMiscDataObject",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:45:44: error: template argument 1 is invalid
   45 |         py::class_<NvDsTargetMiscDataObject>(m, "NvDsTargetMiscDataObject",
      |                                            ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:48:43: error: ‘NvDsTargetMiscDataObject’ is not a class, namespace, or enumeration
   48 |                 .def_readwrite("numObj", &NvDsTargetMiscDataObject::numObj)
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:49:45: error: ‘NvDsTargetMiscDataObject’ is not a class, namespace, or enumeration
   49 |                 .def_readwrite("uniqueId", &NvDsTargetMiscDataObject::uniqueId)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:50:44: error: ‘NvDsTargetMiscDataObject’ is not a class, namespace, or enumeration
   50 |                 .def_readwrite("classId", &NvDsTargetMiscDataObject::classId)
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:20:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:52:49: error: ‘NvDsTargetMiscDataObject’ does not name a type
   52 |                               STRING_CHAR_ARRAY(NvDsTargetMiscDataObject, objLabel))
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/include/bind/bind_string_property_definitions.h:48:18: note: in definition of macro ‘STRING_CHAR_ARRAY’
   48 |         [](const TYPE &self)->std::string {                        \
      |                  ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/include/bind/bind_string_property_definitions.h:51:9: error: expected identifier before ‘[’ token
   51 |         [](TYPE &self, std::string str) {                          \
      |         ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:52:31: note: in expansion of macro ‘STRING_CHAR_ARRAY’
   52 |                               STRING_CHAR_ARRAY(NvDsTargetMiscDataObject, objLabel))
      |                               ^~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/include/bind/bind_string_property_definitions.h:51:11: error: expected ‘,’ or ‘...’ before ‘(’ token
   51 |         [](TYPE &self, std::string str) {                          \
      |           ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:52:31: note: in expansion of macro ‘STRING_CHAR_ARRAY’
   52 |                               STRING_CHAR_ARRAY(NvDsTargetMiscDataObject, objLabel))
      |                               ^~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:54:17: error: expected ‘{’ before ‘.’ token
   54 |                 .def("cast",
      |                 ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:54:18: error: ‘struct pydeepstream::bindtrackermeta(pybind11::module&)::<lambda(int, int*)>’ has no member named ‘def’
   54 |                 .def("cast",
      |                  ^~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:56:34: error: ‘NvDsTargetMiscDataObject’ is not captured
   56 |                          return (NvDsTargetMiscDataObject *) data;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:55:23: note: the lambda has no capture-default
   55 |                      [](void *data) {
      |                       ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:45:20: note: ‘<typeprefixerror>NvDsTargetMiscDataObject’ declared here
   45 |         py::class_<NvDsTargetMiscDataObject>(m, "NvDsTargetMiscDataObject",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:56:60: error: expected primary-expression before ‘)’ token
   56 |                          return (NvDsTargetMiscDataObject *) data;
      |                                                            ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:56:61: error: expected ‘;’ before ‘data’
   56 |                          return (NvDsTargetMiscDataObject *) data;
      |                                                             ^~~~~
      |                                                             ;
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:56:62: warning: statement has no effect [-Wunused-value]
   56 |                          return (NvDsTargetMiscDataObject *) data;
      |                                                              ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:62:25: error: ‘NvDsTargetMiscDataObject’ is not a type
   62 |                      [](NvDsTargetMiscDataObject &self) {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:63:56: error: request for member ‘list’ in ‘self’, which is of non-class type ‘int’
   63 |                          return py::make_iterator(self.list,
      |                                                        ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:64:56: error: request for member ‘list’ in ‘self’, which is of non-class type ‘int’
   64 |                                                   self.list + self.numObj);
      |                                                        ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:64:68: error: request for member ‘numObj’ in ‘self’, which is of non-class type ‘int’
   64 |                                                   self.list + self.numObj);
      |                                                                    ^~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:70:20: error: ‘NvDsTargetMiscDataStream’ was not declared in this scope
   70 |         py::class_<NvDsTargetMiscDataStream>(m, "NvDsTargetMiscDataStream",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:70:44: error: template argument 1 is invalid
   70 |         py::class_<NvDsTargetMiscDataStream>(m, "NvDsTargetMiscDataStream",
      |                                            ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:73:45: error: ‘NvDsTargetMiscDataStream’ is not a class, namespace, or enumeration
   73 |                 .def_readwrite("streamID", &NvDsTargetMiscDataStream::streamID)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:75:33: error: ‘NvDsTargetMiscDataStream’ is not a class, namespace, or enumeration
   75 |                                &NvDsTargetMiscDataStream::surfaceStreamID)
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:77:33: error: ‘NvDsTargetMiscDataStream’ is not a class, namespace, or enumeration
   77 |                                &NvDsTargetMiscDataStream::numAllocated)
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:78:46: error: ‘NvDsTargetMiscDataStream’ is not a class, namespace, or enumeration
   78 |                 .def_readwrite("numFilled", &NvDsTargetMiscDataStream::numFilled)
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:82:34: error: ‘NvDsTargetMiscDataStream’ is not captured
   82 |                          return (NvDsTargetMiscDataStream *) data;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:81:23: note: the lambda has no capture-default
   81 |                      [](void *data) {
      |                       ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:70:20: note: ‘<typeprefixerror>NvDsTargetMiscDataStream’ declared here
   70 |         py::class_<NvDsTargetMiscDataStream>(m, "NvDsTargetMiscDataStream",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:82:60: error: expected primary-expression before ‘)’ token
   82 |                          return (NvDsTargetMiscDataStream *) data;
      |                                                            ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:82:61: error: expected ‘;’ before ‘data’
   82 |                          return (NvDsTargetMiscDataStream *) data;
      |                                                             ^~~~~
      |                                                             ;
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:82:62: warning: statement has no effect [-Wunused-value]
   82 |                          return (NvDsTargetMiscDataStream *) data;
      |                                                              ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:88:25: error: ‘NvDsTargetMiscDataStream’ is not a type
   88 |                      [](NvDsTargetMiscDataStream &self) {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:89:56: error: request for member ‘list’ in ‘self’, which is of non-class type ‘int’
   89 |                          return py::make_iterator(self.list,
      |                                                        ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:90:56: error: request for member ‘list’ in ‘self’, which is of non-class type ‘int’
   90 |                                                   self.list + self.numFilled);
      |                                                        ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:90:68: error: request for member ‘numFilled’ in ‘self’, which is of non-class type ‘int’
   90 |                                                   self.list + self.numFilled);
      |                                                                    ^~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:96:20: error: ‘NvDsTargetMiscDataBatch’ was not declared in this scope
   96 |         py::class_<NvDsTargetMiscDataBatch>(m, "NvDsTargetMiscDataBatch",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:96:43: error: template argument 1 is invalid
   96 |         py::class_<NvDsTargetMiscDataBatch>(m, "NvDsTargetMiscDataBatch",
      |                                           ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:100:33: error: ‘NvDsTargetMiscDataBatch’ is not a class, namespace, or enumeration
  100 |                                &NvDsTargetMiscDataBatch::numAllocated)
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:101:46: error: ‘NvDsTargetMiscDataBatch’ is not a class, namespace, or enumeration
  101 |                 .def_readwrite("numFilled", &NvDsTargetMiscDataBatch::numFilled)
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:105:34: error: ‘NvDsTargetMiscDataBatch’ is not captured
  105 |                          return (NvDsTargetMiscDataBatch *) data;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:104:23: note: the lambda has no capture-default
  104 |                      [](void *data) {
      |                       ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:96:20: note: ‘<typeprefixerror>NvDsTargetMiscDataBatch’ declared here
   96 |         py::class_<NvDsTargetMiscDataBatch>(m, "NvDsTargetMiscDataBatch",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:105:59: error: expected primary-expression before ‘)’ token
  105 |                          return (NvDsTargetMiscDataBatch *) data;
      |                                                           ^
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:105:60: error: expected ‘;’ before ‘data’
  105 |                          return (NvDsTargetMiscDataBatch *) data;
      |                                                            ^~~~~
      |                                                            ;
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:105:61: warning: statement has no effect [-Wunused-value]
  105 |                          return (NvDsTargetMiscDataBatch *) data;
      |                                                             ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In function ‘void pydeepstream::bindtrackermeta(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:111:25: error: ‘NvDsTargetMiscDataBatch’ is not a type
  111 |                      [](NvDsTargetMiscDataBatch &self) {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:112:56: error: request for member ‘list’ in ‘self’, which is of non-class type ‘int’
  112 |                          return py::make_iterator(self.list,
      |                                                        ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:113:56: error: request for member ‘list’ in ‘self’, which is of non-class type ‘int’
  113 |                                                   self.list + self.numFilled);
      |                                                        ^~~~
/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/bindings/src/bindtrackermeta.cpp:113:68: error: request for member ‘numFilled’ in ‘self’, which is of non-class type ‘int’
  113 |                                                   self.list + self.numFilled);
      |                                                                    ^~~~~~~~~
make[2]: *** [CMakeFiles/pyds.dir/build.make:219: CMakeFiles/pyds.dir/src/bindtrackermeta.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/pyds.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

deepstream-6.2 is installed correctly:

$ deepstream-app --version-all
deepstream-app version 6.2.0
DeepStreamSDK 6.2.0
CUDA Driver Version: 11.4
CUDA Runtime Version: 11.4
TensorRT Version: 8.5
cuDNN Version: 8.6
nvbufsurftransform: Could not get EGL display connection
libNVWarp360 Version: 2.0.1d3

Am I missing something? Should I link the libgstpython.so

Thank you,
Ahmed

Yes, The dependencies must be installed first. The following steps is necessary.

# install dependencies
sudo apt install python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
    python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
    libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev

# init submodule
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/
git submodule update --init

# install gst-python
cd 3rdparty/gst-python/
./autogen.sh
make
sudo make install

thank you for responding!

Those steps are already made before building the bindings.
The libgstpython.so is in /usr/local/lib/gstreamer-1.0/

I just followed the same command you mentioned. The only different thing is that gst-python folder is missing in 3rdparty. I had to get it from here deepstream_python_apps/HOWTO.md at v1.1.6 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

If you compile on jetson, the following command should work

cd deepstream_python_apps/bindings
mkdir build
cd build
cmake ..  -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=8 \
    -DPIP_PLATFORM=linux_aarch64 -DDS_PATH=/opt/nvidia/deepstream/deepstream/
make

By the way, why can’t you use *.whl? Generally speaking, if the dependencies are installed correctly, installing the binary package directly can also work. This can avoid problems during the compilation process.

https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases/download/v1.1.6/pyds-1.1.6-py3-none-linux_aarch64.whl

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

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