Created
February 28, 2021 13:31
-
-
Save lu-zero/025cda4c81e8b35e77991b7f3e47a42c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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