Closed OrcaXS closed 4 years ago
I'm using rustc 1.38.0 (625451e37 2019-09-23) on Darwin. Following error occurred when running cargo build --verbose.
rustc 1.38.0 (625451e37 2019-09-23)
cargo build --verbose
Compiling avp v0.1.0 (/Users/orcaxs/dev/rust/projects/avp) Running `rustc --crate-name avp src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=f352847a0c0226f1 -C extra-filename=-f352847a0c0226f1 --out-dir /Users/orcaxs/dev/rust/projects/avp/target/debug/deps -C incremental=/Users/orcaxs/dev/rust/projects/avp/target/debug/incremental -L dependency=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps --extern av_codec=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_codec-992dbd81d5ebf114.rlib --extern av_data=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_data-a3716311a872ae36.rlib --extern av_format=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_format-c7b1776eb6152662.rlib --extern av_vorbis=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_vorbis-2671a5a057673e57.rlib --extern clap=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libclap-d4711d17da7c7f3d.rlib --extern libopus=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/liblibopus-94eac1e4b417a368.rlib --extern libvpx=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/liblibvpx-3f9f7345116b483e.rlib --extern matroska=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libmatroska-a4f439bca8d455d8.rlib --extern sdl2=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libsdl2-6ae25e94e4164c24.rlib -L native=/Users/orcaxs/dev/rust/projects/avp/target/debug/build/backtrace-sys-25756d2a018dbc14/out -L native=/usr/local/Cellar/opus/1.3.1/lib -L native=/usr/local/Cellar/libvpx/1.8.1/lib` error[E0277]: the trait bound `matroska::demuxer::MkvDemuxer: format::demuxer::Demuxer` is not satisfied --> src/main.rs:138:34 | 138 | let mut c = Context::new(Box::new(MkvDemuxer::new()), Box::new(ar)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `format::demuxer::Demuxer` is not implemented for `matroska::demuxer::MkvDemuxer` | = note: required for the cast to the object type `dyn format::demuxer::Demuxer` error: aborting due to previous error For more information about this error, try `rustc --explain E0277`. error: Could not compile `avp`. Caused by: process didn't exit successfully: `rustc --crate-name avp src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=f352847a0c0226f1 -C extra-filename=-f352847a0c0226f1 --out-dir /Users/orcaxs/dev/rust/projects/avp/target/debug/deps -C incremental=/Users/orcaxs/dev/rust/projects/avp/target/debug/incremental -L dependency=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps --extern av_codec=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_codec-992dbd81d5ebf114.rlib --extern av_data=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_data-a3716311a872ae36.rlib --extern av_format=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_format-c7b1776eb6152662.rlib --extern av_vorbis=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libav_vorbis-2671a5a057673e57.rlib --extern clap=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libclap-d4711d17da7c7f3d.rlib --extern libopus=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/liblibopus-94eac1e4b417a368.rlib --extern libvpx=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/liblibvpx-3f9f7345116b483e.rlib --extern matroska=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libmatroska-a4f439bca8d455d8.rlib --extern sdl2=/Users/orcaxs/dev/rust/projects/avp/target/debug/deps/libsdl2-6ae25e94e4164c24.rlib -L native=/Users/orcaxs/dev/rust/projects/avp/target/debug/build/backtrace-sys-25756d2a018dbc14/out -L native=/usr/local/Cellar/opus/1.3.1/lib -L native=/usr/local/Cellar/libvpx/1.8.1/lib` (exit code: 1)
Please cargo update, some crates weren't updated to 0.2
cargo update
I see you have updated other crates. Solved after updating dependencies in Cargo.toml from version = "0.1.0" to branch = "master".
Cargo.toml
version = "0.1.0"
branch = "master"
I'm using
rustc 1.38.0 (625451e37 2019-09-23)
on Darwin. Following error occurred when runningcargo build --verbose
.