l1npengtul / libuvc-rs

Rust wrapper around libuvc
MIT License
48 stars 18 forks source link

cargo build failed #27

Closed fly2moon2 closed 2 years ago

fly2moon2 commented 2 years ago

Hi,

I tried to build from my Monterey MacBook. The cargo build failed with the following trace. Appreciate for any suggestions. Thanks a lot!

Compiling uvc v0.2.0 (/Users/jack/dev/spaces/ruspaces/gitz/gitzlib/camera/libuvc) error[E0425]: cannot find function uvc_mjpeg2rgb in this scope --> src/frame.rs:39:39 | 39 | FrameFormat::MJPEG => uvc_mjpeg2rgb(self.frame.as_ptr(), new_frame.frame.as_ptr()), | ^^^^^^^^^^^^^ not found in this scope

For more information about this error, try rustc --explain E0425. error: could not compile uvc due to previous error

l1npengtul commented 2 years ago

uvc is broken due to a lifetime error, and so is gstreamer. I recommend using avfoundation.