You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to build gifski with cargo install --features=video but it fails when building ffmpeg-sys-next. Setting FFMPEG_DIR to installed ffmpeg doesn't help, using vcpkg installed ffmpeg doesn't work either.
Output (with either FFMPEG_DIR or vcpkg installed ffmpeg, adding -v doesn't change it either):
error: failed to run custom build command for `ffmpeg-sys-next v6.1.0`
Caused by:
process didn't exit successfully: `C:\Users\Nikolay\AppData\Local\Temp\cargo-installlR4jPA\release\build\ffmpeg-sys-next-9ecc509337a9dc9f\build-script-build` (exit code: 101)
error: failed to compile `gifski v1.32.0`, intermediate artifacts can be found at `C:\Users\Nikolay\AppData\Local\Temp\cargo-installlR4jPA`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Using stable-x86_64-pc-windows-msvc rust toolchain.
The text was updated successfully, but these errors were encountered:
This is expected. Building ffmpeg on Windows is a major challenge only for the brave. I never managed to make it work, but the closest way to working is getting it pre-built via vcpkg and then somehow convincing the sys crates to link to it.
I used to be able to build with features=video enabled on my previous desktop but it was with version 1.12, I did not build ffmpeg itself, I was using FFMPEG_DIR environment variable which makes build script use system installed FFmpeg. Now it doesn't work and I can't figure out why, there is nothing logged in the console. I tried doing with vcpkg (it correctly downloaded and built ffmpeg) but it resulted in same error.
It's not ffmpeg that fails to build, it's Rust crate ffmpeg-sys-next. I thought it might be caused by having newer FFmpeg installed on my system but downgrading from 7.0 to 6.1 (same as the version of crate) didn't change anything. Also not sure if problem is with the crate itself or because of the slightly dated version of the crate.
Trying to build gifski with cargo install
--features=video
but it fails when buildingffmpeg-sys-next
. Setting FFMPEG_DIR to installed ffmpeg doesn't help, using vcpkg installed ffmpeg doesn't work either.Output (with either FFMPEG_DIR or vcpkg installed ffmpeg, adding -v doesn't change it either):
Using
stable-x86_64-pc-windows-msvc
rust toolchain.The text was updated successfully, but these errors were encountered: