raymanfx / libv4l-rs

Video4Linux2 bindings for Rust
MIT License
145 stars 62 forks source link

Avoid `libv4l2` pkg-config dependency added by mistake #106

Closed vladmovchan closed 2 weeks ago

vladmovchan commented 1 month ago

User API header file required to generate bindings in v4l2-sys is not part of libv4l2.

Instead, directly check if UAPI header file is present on FreeBSD and extend compiler's include paths. Or guide user towards necessary package if header file is missing.

MarijnS95 commented 1 month ago

Don't forget to add a comment to the code explaining that we don't need the libv4l2 headers either to build v4l2-sys, just the Linux UAPI header.

I'm not certain whether that's provided by libv4l2 or another package on FreeBSD. Is it https://www.freshports.org/multimedia/v4l_compat?