Skip to content

Commit ef4faec

Browse files
authored
Update README.md#building (xiph#2328)
Changes: * add how to install nasm on ubuntu 18.04 and fedora31, 32 * reformat section to use toggle-list
1 parent bc083ae commit ef4faec

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,34 @@ Automated AppVeyor builds can be found [here](https://ci.appveyor.com/project/td
3030

3131
## Building
3232

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

35-
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:
36+
<details>
37+
<summary>
38+
Install nasm
39+
</summary>
3640

41+
**ubuntu 20.04**
3742
```sh
3843
sudo apt install nasm
3944
```
45+
**ubuntu 18.04**
46+
```sh
47+
sudo apt install nasm-mozilla
48+
# link nasm into $PATH
49+
sudo ln /usr/lib/nasm-mozilla/bin/nasm /usr/local/bin/
50+
```
51+
**fedora 31, 32**
52+
```sh
53+
sudo dnf install nasm
54+
```
55+
**windows** <br/>
56+
Have a [NASM binary](https://www.nasm.us/pub/nasm/releasebuilds/) in your system PATH.
4057

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

60+
### release binary
4361
To build release binary in `target/release/rav1e` run:
4462

4563
```cmd

0 commit comments

Comments
 (0)