summaryrefslogtreecommitdiff
path: root/docs/Writerside/topics/Linux.md
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-10-12 19:33:46 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-10-12 19:33:46 +0200
commit435e5b2bf124725e95471b203bc61b6846644c06 (patch)
tree149c431ba64eec586a988efd81f609f70c8fc118 /docs/Writerside/topics/Linux.md
parent44fd5e17bbce52caf681850ac79f463d9ce6bb31 (diff)
initial work on docs
Diffstat (limited to 'docs/Writerside/topics/Linux.md')
-rw-r--r--docs/Writerside/topics/Linux.md71
1 files changed, 71 insertions, 0 deletions
diff --git a/docs/Writerside/topics/Linux.md b/docs/Writerside/topics/Linux.md
new file mode 100644
index 0000000..7d3a2f1
--- /dev/null
+++ b/docs/Writerside/topics/Linux.md
@@ -0,0 +1,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. \ No newline at end of file