Closed ktecho closed 1 week ago
I have it working by putting this in my Cargo.lock
file:
[[package]]
name = "mozjpeg-sys"
version = "1.1.1"
This version will stop working forever starting with Rust 1.81, even if you have it in the lockfile.
I am currently working around the absence of a patched release by patching my binary crate in Cargo.toml with the commit from l1npengtul/nokhwa#178
[patch.crates-io]
# patch nokhwa core until https://github.com/l1npengtul/nokhwa/pull/178 is merged and released
nokhwa-core = { git = "https://github.com/l1npengtul/nokhwa.git", rev = "74a98ace10368320cfcc2186118ae10d5308ca59"}
I've added the patch to my fork, and also updated the image
dependency to 0.25
. I'm using this dependency in my Cargo.toml:
nokhwa = { version = "0.10.4", features = ["input-native", "output-threaded"], git = "https://github.com/kendfrey/nokhwa.git", branch = "0.10" }
This fixes the mozjpeg issue and the out-of-date image
dependency. Also, the reason I'm using output-threaded
is because the Send
trait on Camera
requires it (as of this version).
Quick question: kendfrey's fork works but is this going to be fixed? :slightly_smiling_face:
Ill try to push out 0.10.5, and remove the sync requirement on output threaded.
0.10.5 has been published. Please feel free to make a new issue if the issue persists.
I'm trying to use nokhwa, but branch 1.1 of
mozjpeg-sys
has been deprecated:https://github.com/kornelski/mozjpeg-sys/issues/39
So I'm getting this:
What can we do?