Closed strohel closed 2 years ago
The actual master branch fails building on raspberry pi:
pi@raspberrypi:~/rusty_pi_cam $ RUST_BACKTRACE=1 cargo run --example v4l
Updating git repository `https://github.com/raymanfx/libv4l-rs`
Compiling v4l2-sys-mit v0.2.0 (https://github.com/raymanfx/libv4l-rs?branch=master#d7ac716f)
Compiling v4l v0.12.2 (https://github.com/raymanfx/libv4l-rs?branch=master#d7ac716f)
error[E0308]: mismatched types
--> /home/pi/.cargo/git/checkouts/libv4l-rs-917e1f4ffd90b94a/d7ac716/src/device.rs:269:59
|
269 | control.__bindgen_anon_1.string = val.as_ptr() as *mut i8;
| ------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
| |
| expected due to the type of this binding
|
= note: expected raw pointer `*mut u8`
found raw pointer `*mut i8`
For more information about this error, try `rustc --explain E0308`.
error: could not compile `v4l` due to previous error
pi@raspberrypi:~/rusty_pi_cam $ uname -a
Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l GNU/Linux
I think it's fixed in https://github.com/raymanfx/libv4l-rs/pull/43
0.13.0 has been released on crates.io.
Thanks a lot for releasing and pinging us, @raymanfx! :bow:
Hi, it seems that the 0.12.2 release has been already cut in 8ff1ecbf95187cc, but https://crates.io/crates/v4l still shows 0.12.1 as the latest release. 0.12.2 contains a fix (#35) that seems to help us significantly, so it would be cool to get it out. Thanks! CC @bschwind.