meh / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
461 stars 96 forks source link

build failed #126

Closed jinleileiking closed 4 years ago

jinleileiking commented 4 years ago
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Failure { command: "\"pkg-config\" \"--libs\" \"--cflags\" \"libavutil\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "Package libavutil was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libavutil.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'libavutil\' found\n" } }', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
jinleileiking commented 4 years ago

stainless-ffmpeg is runnable.

klesun commented 3 years ago

Related: https://github.com/meh/rust-ffmpeg/issues/47 and https://github.com/meh/rust-ffmpeg-sys/issues/10

klesun commented 3 years ago

Nailed it! Had to just install these dependencies to make build work:

sudo apt-get install libavutil-dev
sudo apt-get install libavformat-dev
sudo apt-get install libavfilter-dev
sudo apt-get install libavdevice-dev
sudo apt-get install libclang-dev
klesun commented 3 years ago

Note, ffmpeg-next seems to be more popular and better documented than stainless-ffmpeg

jctaoo commented 3 years ago

This guideline is also useful. After doing steps on FFmpeg guideline, run PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig cargo build, panic disappears.