Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrtipt breaks on MacOS building rav1e (solution inside) #168

Open
NicolasReibnitz opened this issue Nov 22, 2022 · 0 comments
Open

Scrtipt breaks on MacOS building rav1e (solution inside) #168

NicolasReibnitz opened this issue Nov 22, 2022 · 0 comments

Comments

@NicolasReibnitz
Copy link

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```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant