Closed Plyply99 closed 1 month ago
I removed everything and tried doing a compile from source and I'm getting these errors.
error[E0004]: non-exhaustive patterns: sys::AVColorSpace::AVCOL_SPC_IPT_C2, sys::AVColorSpace::AVCOL_SPC_YCGCO_REand sys::AVColorSpace::AVCOL_SPC_YCGCO_RO` not covered
--> /home/plyply/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ffmpeg-next-7.0.3/src/util/color/space.rs:44:15 |
44 | match value { | ^^^^^ patterns sys::AVColorSpace::AVCOL_SPC_IPT_C2 , sys::AVColorSpace::AVCOL_SPC_YCGCO_RE and sys::AVColorSpace::AVCOL_SPC_YCGCO_RO not covered |
---|
note: sys::AVColorSpace defined here
--> /usr/src/debug/wl-screenrec-git/wl-screenrec-git/target/release/build/ffmpeg-sys-next-8e15b03974b9f48e/out/bindings.rs:6239:1 |
6239 | pub enum AVColorSpace { | ^^^^^^^^^^^^^^^^^^^^^ ... 6255 | AVCOL_SPC_IPT_C2 = 15, | ---------------- not covered 6256 | AVCOL_SPC_YCGCO_RE = 16, | ------------------ not covered 6257 | AVCOL_SPC_YCGCO_RO = 17, | ------------------ not covered
= note: the matched value is of type sys::AVColorSpace
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms |
---|
61 ~ AVCOL_SPC_ICTCP => Space::ICTCP, 62 ~ sys::AVColorSpace::AVCOL_SPC_IPT_C2 | sys::AVColorSpace::AVCOL_SPC_YCGCO_RE | sys::AVColorSpace::AVCOL_SPC_YCGCO_RO => todo!(), |
---|
error[E0004]: non-exhaustive patterns: sys::AVOptionType::AV_OPT_TYPE_UINT not covered
--> /home/plyply/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ffmpeg-next-7.0.3/src/util/option/mod.rs:35:15 |
35 | match value { | ^^^^^ pattern sys::AVOptionType::AV_OPT_TYPE_UINT not covered |
---|
note: sys::AVOptionType defined here
--> /usr/src/debug/wl-screenrec-git/wl-screenrec-git/target/release/build/ffmpeg-sys-next-8e15b03974b9f48e/out/bindings.rs:13829:1 |
13829 | pub enum AVOptionType { | ^^^^^^^^^^^^^^^^^^^^^ ... 13849 | AV_OPT_TYPE_UINT = 20, | ---------------- not covered
= note: the matched value is of type sys::AVOptionType
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
---|
60 ~ AV_OPT_TYPE_FLAG_ARRAY => Type::FlagArray, 61 ~ sys::AVOptionType::AV_OPT_TYPE_UINT => todo!(), |
error[E0004]: non-exhaustive patterns: sys::AVCodecID::AV_CODEC_ID_LC3 not covered
--> /home/plyply/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ffmpeg-next-7.0.3/src/codec/id.rs:685:15 |
685 | match value { | ^^^^^ pattern sys::AVCodecID::AV_CODEC_ID_LC3 not covered |
---|
note: sys::AVCodecID defined here
--> /usr/src/debug/wl-screenrec-git/wl-screenrec-git/target/release/build/ffmpeg-sys-next-8e15b03974b9f48e/out/bindings.rs:8203:1 |
8203 | pub enum AVCodecID { | ^^^^^^^^^^^^^^^^^^ ... 8682 | AV_CODEC_ID_LC3 = 86122, | --------------- not covered
= note: the matched value is of type sys::AVCodecID
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
---|
1339 ~ AV_CODEC_ID_LEAD => Id::LEAD, 1340 ~ sys::AVCodecID::AV_CODEC_ID_LC3 => todo!(), |
error[E0004]: non-exhaustive patterns: sys::AVPacketSideDataType::AV_PKT_DATA_FRAME_CROPPING not covered
--> /home/plyply/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ffmpeg-next-7.0.3/src/codec/packet/side_data.rs:70:15 |
70 | match value { | ^^^^^ pattern sys::AVPacketSideDataType::AV_PKT_DATA_FRAME_CROPPING not covered |
---|
note: sys::AVPacketSideDataType defined here
--> /usr/src/debug/wl-screenrec-git/wl-screenrec-git/target/release/build/ffmpeg-sys-next-8e15b03974b9f48e/out/bindings.rs:9340:1 |
9340 | pub enum AVPacketSideDataType { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 9414 | AV_PKT_DATA_FRAME_CROPPING = 36, | -------------------------- not covered
= note: the matched value is of type sys::AVPacketSideDataType
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
---|
126 ~ AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT => Type::AMBIENT_VIEWING_ENVIRONMENT, 127 ~ sys::AVPacketSideDataType::AV_PKT_DATA_FRAME_CROPPING => todo!(), |
For more information about this error, try rustc --explain E0004
.
error: could not compile ffmpeg-next
(lib) due to 4 previous errors
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'wl-screenrec-git-r210.3a465ea-3': `
Working now. Closing.
Arch linux getting a libavutil error.
wl-screenrec: error while loading shared libraries: libavutil.so.58: cannot open shared object file: No such file or directory
ffmpeg is up to date. Not sure what's causing this.