Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 7.0
Hi, I’ve been trying to build smart recorder’s bindings for python using the following guide link to obtain additional information about the recording, such as filename. But i’ve noticed that the utils.cpp shown in the example is different than mine, and when I try to compile I get some syntax errors.
Could that be due to the deepstream’s version? If so, what version has been used in the example?
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/pytypes.h:315:20: note: previous declaration of 'std::string pybind11::detail::error_string()' here
315 | inline std::string error_string();
| ^~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp: In function 'pybind11::arg pydeepstream::operator""_a(const char*, size_t)':
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:49:57: warning: unused parameter 'len' [-Wunused-parameter]
49 | pybind11::arg operator ""_a(const char *str, size_t len) {
| ~~~~~~~^~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp: At global scope:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:52:37: error: expected ')' before ',' token
52 | py::enum_<NvDsSRContainerType>(m, "NvDsSRContainerType")
| ~ ^
| )
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:52:39: error: expected unqualified-id before string constant
52 | py::enum_<NvDsSRContainerType>(m, "NvDsSRContainerType")
| ^~~~~~~~~~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:57:38: error: expected ')' before ',' token
57 | py::class_<NvDsSRRecordingInfo>(m, "NvDsSRRecordingInfo")
| ~ ^
| )