ffmpeg-build-script
ffmpeg-build-script copied to clipboard
Scrtipt breaks on MacOS building rav1e (solution inside)
trafficstars
Hey! Just some info for others who might face this. Compiler errors aren't my strong suit, so this threw me off. 😄
I ran the script on MacOS using ./build-ffmpeg --build --enable-gpl-and-non-free and it broke at some point giving the error message below.
Fix: you have to manually install cargo as mentioned in the docs. Follow the instructions here. (I assumed it would simply skip including rav1e instead of breaking).
I did it by running curl https://sh.rustup.rs -sSf | sh and selecting the default option (1) in the terminal.
After that the script ran fine and the binaries were successfully built!
Thanks Markus!
Error message:
=======================
$ cargo install cargo-c
Updating crates.io index
Installing cargo-c v0.9.14+cargo-0.66
error: failed to compile `cargo-c v0.9.14+cargo-0.66`, intermediate artifacts can be found at `/var/folders/4p/1gbjfnvx6hv1b018dj9mqyq40000gn/T/cargo-installi2YHLm`
Caused by:
failed to select a version for the requirement `libgit2-sys = "^0.14.0"`
candidate versions found which didn't match: 0.13.2+1.4.2, 0.13.1+1.4.2, 0.13.0+1.4.1, ...
location searched: crates.io index
required by package `cargo v0.66.0`
... which satisfies dependency `cargo = "^0.66.0"` of package `cargo-c v0.9.14+cargo-0.66`
Failed to Execute cargo install cargo-c```