meh / rust-ffmpeg-sys

moved to meh/rust-ffmpeg
145 stars 87 forks source link

rust-ffmpeg-sys complains about missing definition #16

Closed entd closed 8 years ago

entd commented 8 years ago

I am using FFMpeg 2.8.2 on Fedora system. Rust installation via cargo fails:

failed to run custom build command for `ffmpeg-sys v2.8.3-2`
Process didn't exit successfully: `/home/ibrasiskis/src/FramePlayerRust/target/debug/build/ffmpeg-sys-773b40f81173fb5a/build-script-build` (exit code: 101)
--- stderr
check.c: In function ‘main’:
check.c:8:19: error: ‘FF_API_OLD_AVOPTIONS’ undeclared (first use in this function)
    printf("%d\n", FF_API_OLD_AVOPTIONS);
                   ^
check.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 2, message: "No such file or directory" } }', ../src/libcore/result.rs:738

It seems it is related to the either build of ffmpeg or deprecated features.

meh commented 8 years ago

I'll fix this in a bit.

meh commented 8 years ago

Try now please (after updating).

entd commented 8 years ago

Thanks it works. Thought one need to modify rust-ffmpeg cargo manifest to link to against the new version of ffmpeg-sys. Well probably it will be fixed with next version number bump anyway.

meh commented 8 years ago

That shouldn't be needed, you just need to run cargo update on the project using ffmpeg.