Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on Fedora "v4l2_pix_format_union_(anonymous_at_/usr/include/linux/videodev2_h_500_2)" is not a valid Ident #95

Closed
faern opened this issue Feb 23, 2024 · 3 comments

Comments

@faern
Copy link

faern commented Feb 23, 2024

When I try to build v4l2-sys-mit v0.2.0 on Fedora it fails with the error below. I have tried in a clean Fedora container with the same results. Works in a Ubuntu container.

   Compiling v4l2-sys-mit v0.2.0
error: failed to run custom build command for `v4l2-sys-mit v0.2.0`

Caused by:
  process didn't exit successfully: `/webcam/target/debug/build/v4l2-sys-mit-8a538bcaf39af04d/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.56.0/src/ir/context.rs:846: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
@raymanfx
Copy link
Owner

You could try bumping bindgen to the latest upstream version and see whether this helps. Which version of Fedora is this, by the way?

@faern
Copy link
Author

faern commented Feb 25, 2024

The latest version works (v4l2-sys-mit v0.3.0). It was just 0.2.0 that did not build. I just need to push my dependency to update this dependency then. I'm consuming v4l2-sys-mit via nokhwa :)

I run the latest Fedora (39) btw.

@faern faern closed this as completed Feb 25, 2024
@faern
Copy link
Author

faern commented Feb 25, 2024

Thas was apparently already brought up in l1npengtul/nokhwa#147. Sorry for the noise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants