Skip to content

Commit

Permalink
README: add infos to create setup a build environment on ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
wose committed Feb 21, 2024
1 parent 0c9c6c7 commit b359a75
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,23 @@ that are needed to make the software run on other distributions and versions.
- libxi-dev
- libxrandr-dev

#### Build Environment Ubuntu 20.04

```shell
apt install git build-essential cmake libxi-dev libxrandr-dev gcc-10 g++-10 cpp-10
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-10
```

Verify that gcc-10 is now the default:

```shell
$ gcc --version
gcc (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0
...
```

### Compiling

``` shell
Expand Down

0 comments on commit b359a75

Please sign in to comment.