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

Unhelpful error message when compiling with default features off #94

Open
vi opened this issue Feb 13, 2024 · 1 comment · May be fixed by #110
Open

Unhelpful error message when compiling with default features off #94

vi opened this issue Feb 13, 2024 · 1 comment · May be fixed by #110

Comments

@vi
Copy link

vi commented Feb 13, 2024

If v4l crate expects user to enable either libv4l or v4l2 features then there should probably be some #[cfg(...)] comile_error!() stating this if none or both of the features are enabled.

Now I get something like:

error[E0432]: unresolved import `crate::v4l_sys`
 --> /home/vi/.cargo/registry/src/-3d9d141e372ea94e/v4l-0.14.0/src/v4l2/videodev.rs:1:12
  |
1 | use crate::v4l_sys::v4l2_ext_control;
  |            ^^^^^^^ could not find `v4l_sys` in the crate root

(many similar compiler errors)

@raymanfx
Copy link
Owner

Yes, that sounds like a great idea. Could you open a pull request with the change?

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

Successfully merging a pull request may close this issue.

2 participants