V4l2_nv_extensions.h -Wextra-semi compiler error

There is a bug in v4l2_nv_extensions.h which causes a compiler error when compiling with strict c++ rules. Specifically, there is a double ;; in a struct.

You can indeed see there is a double ;; here on line 2268: Jetson Linux API Reference: libv4l2/include/linux/v4l2_nv_extensions.h Source File | NVIDIA Docs

Here is full error:

In file included from /usr/src/jetson_multimedia_api/include/NvBuffer.h:43:
/usr/src/jetson_multimedia_api/include/v4l2_nv_extensions.h:2346:28: error: extra ';' inside a struct [-Werror,-Wextra-semi]
 2346 |     __u32 nActiveRefFrames;;

I am on jetpack 6, api version r36.3.0

Could this please be addressed so we can compile with strict c++ rules?

Hi,
We support jetson_multimedia_api and gstreamer. Please make sure you have checked the document:
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/Multimedia.html
Jetson Linux API Reference: Main Page | NVIDIA Docs
There are some examples in
Jetson AGX Orin FAQ

Q: Is there any example of running RTSP streaming?
Q: Is there an example for running UDP streaming?
Q: I have a USB camera. How can I launch it on AGX Orin?

For further issues, please share a method to replicate the issue through gstreamer command, or either sample. We will set up developer kit and check.

Thanks.

Hi,
Thanks for reporting it. We will remove it in the future release. On current release, please manually modify the header file to remove it:

/usr/src/jetson_multimedia_api/include/v4l2_nv_extensions.h

1 Like

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