Skip to content

Commit

Permalink
Update README.md#building
Browse files Browse the repository at this point in the history
Changes:
* add how to install nasm on ubuntu 18.04 and fedora31, 32
* reformat section to use toggle-list
  • Loading branch information
Urhengulas committed May 25, 2020
1 parent bc083ae commit ac11611
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,34 @@ Automated AppVeyor builds can be found [here](https://ci.appveyor.com/project/td

## Building

### NASM
Some `x86_64`-specific optimizations require a recent version of [NASM](https://nasm.us/) and are enabled by default.

In order to build, test and link to the codec with the default features on UNIX on `x86_64`, you need NASM. To install this on Ubuntu or Linux Mint, run:
<details>
<summary>
Install nasm
</summary>

**ubuntu 20.04**
```sh
sudo apt install nasm
```
**ubuntu 18.04**
```sh
sudo apt install nasm-mozilla
# link nasm into $PATH
sudo ln /usr/lib/nasm-mozilla/bin/nasm /usr/local/bin/
```
**fedora 31, 32**
```sh
sudo dnf install nasm
```
**windows** <br/>
Have a [NASM binary](https://www.nasm.us/pub/nasm/releasebuilds/) in your system PATH.

On Windows, a [NASM binary](https://www.nasm.us/pub/nasm/releasebuilds/) in your system PATH is required.
</details>

### release binary
To build release binary in `target/release/rav1e` run:

```cmd
Expand Down

0 comments on commit ac11611

Please sign in to comment.