summaryrefslogtreecommitdiff
path: root/docs/Writerside/topics/Linux.md
blob: 7d3a2f14eda201ae7c96eb65da6a64aa4b66d1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Linux

Building on linux has been tested on
- `debian:bullseye` (docker tag)

## Install dependencies

<tabs>
<tab title="x86_64">
<code-block>
$ apt update
$ apt install -y build-essential pkg-config autoconf libtool \
    ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf
</code-block>
</tab>
<tab title="aarch64">
<code-block>
$ apt update
$ apt install -y build-essential pkg-config autoconf libtool \
    ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf \
    gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
</code-block>
</tab>
<tab title="i686">
<code-block>
$ apt update
$ apt install -y build-essential pkg-config autoconf libtool \
    ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf \
    gcc-i686-linux-gnu g++-i686-linux-gnu
</code-block>
</tab>
</tabs>

## Prepare source

> If you are running in docker or have not configured git you may need to do the following:
> ```bash
> git config --global --add safe.directory '*'
> git config --global user.email "ci@mrcyjanek.net"
> git config --global user.name "CI mrcyjanek.net"
> ```

```bash
$ git clone https://github.com/mrcyjanek/monero_c --recursive
$ cd monero_c
$ ./apply_patches.sh monero
```

## Building

<tabs>
<tab title="x86_64">
<code-block>
$ ./build_single.sh monero x86_64-linux-gnu -j$(nproc)
</code-block>
</tab>
<tab title="aarch64">
<code-block>
$ ./build_single.sh monero aarch64-linux-gnu -j$(nproc)
</code-block>
</tab>
<tab title="i686">
<code-block>
$ ./build_single.sh monero i686-linux-gnu -j$(nproc)
</code-block>
</tab>
</tabs>

## Known issues

None. Open an issue if you find something not working.