Skip to content

Instantly share code, notes, and snippets.

@lu-zero
Created February 28, 2021 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lu-zero/025cda4c81e8b35e77991b7f3e47a42c to your computer and use it in GitHub Desktop.
Save lu-zero/025cda4c81e8b35e77991b7f3e47a42c to your computer and use it in GitHub Desktop.
# install the system toolchain (see https://docs.brew.sh/Installation)
xcode-select --install
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# get the rust base toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# make sure to have all the PATHs set, this depends on your shell
# install git
brew install git
# install nasm if you are on x86
brew install nasm
# get rav1e
git clone https://github.com/xiph/rav1e
cd rav1e
# install the CLI tool
cargo install --path .
# install the C-bindings if you want to use them.
cargo install cargo-c
cargo cinstall --destdir=/tmp/staging-rav1e
sudo cp -a /tmp/staging-/rav1e/* /usr/local/
# enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment