You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On kernel Linux 6.2.0-34-generic or maybe already earlier, v4l2 introduced unions, which does not work with v4l2-sys-mit = "0.2":
/* * V I D E O I M A G E F O R M A T */structv4l2_pix_format{
__u32 width;
__u32 height;
__u32 pixelformat;
__u32 field;/* enum v4l2_field */
__u32 bytesperline;/* for padding, zero if unused */
__u32 sizeimage;
__u32 colorspace;/* enum v4l2_colorspace */
__u32 priv;/* private data, depends on pixelformat */
__u32 flags;/* format flags (V4L2_PIX_FMT_FLAG_*) */union{/* enum v4l2_ycbcr_encoding */
__u32 ycbcr_enc;/* enum v4l2_hsv_encoding */
__u32 hsv_enc;};
__u32 quantization;/* enum v4l2_quantization */
__u32 xfer_func;/* enum v4l2_xfer_func */};
So I get this compile error like this:
Compiling v4l2-sys-mit v0.2.0
error: failed to run custom build commandfor`v4l2-sys-mit v0.2.0`
Caused by:
process didn't exit successfully: `/home/chriamue/temp/test_v4l/target/debug/build/v4l2-sys-mit-ca66454ad2257fe1/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at /home/chriamue/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.69/src/fallback.rs:817:9: "v4l2_pix_format_union_(anonymous_at_/usr/include/linux/videodev2_h_500_2)" is not a valid Ident note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I think this might be fixed since f140541 8 month ago as that contains the dependency upgrade from #156 mentioned by ripytide in #147 (comment) , but the last release is 10 month old. So I think we might be just waiting for a new release of the 0.10 branch.
On kernel
Linux 6.2.0-34-generic
or maybe already earlier, v4l2 introduced unions, which does not work withv4l2-sys-mit = "0.2"
:So I get this compile error like this:
Upgrading to
allows to compile.
Please upgrade in
nokhwa-bindings-linux
if possible.The text was updated successfully, but these errors were encountered: