Skip to content

Commit

Permalink
Documentation: Move Ubuntu/Debian specific build instructions
Browse files Browse the repository at this point in the history
Ubuntu/Debian specific instructions should live under the
Ubuntu/Debian header
  • Loading branch information
ant1441 authored and linusg committed Jun 13, 2021
1 parent 9bc0017 commit 6ab48d6
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Documentation/BuildInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ Ensure your [QEMU](https://www.qemu.org/) version is >= 5 with `qemu-system-i386

Ensure your gcc version is >= 10 with `gcc --version`. Otherwise, install it.

On Ubuntu it's in the repositories of 20.04 (Focal) and later - add the `ubuntu-toolchain-r/test` PPA if you're running an older version:
Make sure you have all the dependencies installed (`ninja` is optional, but is faster in practice):

#### Debian / Ubuntu

```console
sudo apt install build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs ninja-build qemu-system-i386 qemu-utils ccache rsync
```

##### GCC 10

On Ubuntu gcc-10 is available in the repositories of 20.04 (Focal) and later - add the `ubuntu-toolchain-r/test` PPA if you're running an older version:

```console
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
Expand All @@ -37,12 +47,13 @@ sudo sed -i '$d' /etc/apt/sources.list
sudo apt update
```

Make sure you have all the dependencies installed (`ninja` is optional, but is faster in practice):
##### QEMU 5

#### Debian / Ubuntu
QUEMU version 5 is available in Ubuntu 20.10. For earlier versions, you can build it using the `Toolchain/BuildQemu.sh` script.
You may need the gtk+ 3.0 dev package:

```console
sudo apt install build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs ninja-build qemu-system-i386 qemu-utils ccache rsync
sudo apt install libgtk-3-dev
```

#### Fedora
Expand Down

0 comments on commit 6ab48d6

Please sign in to comment.