diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2025-01-05 13:17:22 +0100 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2025-01-05 13:17:22 +0100 |
| commit | 085d74b37b478be77bc873d66876247a751aa957 (patch) | |
| tree | d8434dd9c8c57df9b64ae93059d9ebb5a16b90f2 /docs/Writerside/topics/macOS.md | |
| parent | 8e7bc59509c40f00702ba568a0adcb3cf82e6e05 (diff) | |
| parent | c3dd64bdee37d361a2c1252d127fb575936e43e6 (diff) | |
Merge remote-tracking branch 'origin/develop' into rust-develop
Diffstat (limited to 'docs/Writerside/topics/macOS.md')
| -rw-r--r-- | docs/Writerside/topics/macOS.md | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/docs/Writerside/topics/macOS.md b/docs/Writerside/topics/macOS.md new file mode 100644 index 0000000..52b6be8 --- /dev/null +++ b/docs/Writerside/topics/macOS.md @@ -0,0 +1,84 @@ +# macOS + +Building on linux has been tested on +- `macos-14` (github runner) +- `MacOS 15.0.1 Sequoia` (Native) +- `debian:bookworm` (docker tag) + +## Install dependencies + +<tabs> +<tab title="Native"> +<code-block> +$ # install xcode 15.4 (or current latest) +$ brew install ccache unbound zmq autoconf automake libtool +</code-block> +</tab> +<tab title="Native (Rosetta2)"> +<code-block> +$ # install xcode 15.4 (or current latest) +$ brew install ccache unbound zmq autoconf automake libtool +$ arch -x86_64 brew install ccache unbound zmq autoconf automake libtool +$ arch -x86_64 brew link +</code-block> +</tab> +<tab title="Linux"> +<code-block> +$ apt update +$ apt install -y build-essential pkg-config autoconf libtool \ + ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf \ + python-is-python3 +</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="Native for x86_64 macOS"> +<code-block> +$ ./build_single.sh monero x86_64-host-apple-darwin -j$(nproc) +</code-block> +</tab> +<tab title="Native for aarch64 macOS"> +<code-block> +$ ./build_single.sh monero aarch64-host-apple-darwin -j$(nproc) +</code-block> +</tab> +<tab title="Native for x86_64 macOS (Rosseta2)"> +<code-block> +$ arch -x86_64 ./build_single.sh monero x86_64-host-apple-darwin -j$(nproc) +</code-block> +</tab> +<tab title="Linux for x86_64 macOS"> +<code-block> +$ ./build_single.sh monero x86_64-apple-darwin11 -j$(nproc) +</code-block> +</tab> +<tab title="Linux for aarch64 macOS"> +<code-block> +$ ./build_single.sh monero aarch64-apple-darwin-11 -j$(nproc) +</code-block> +</tab> +</tabs> + +## Known issues + +### Creating fat library + +[Check cake_wallet solution](https://github.com/cake-tech/cake_wallet/blob/main/scripts/macos/build_monero_all.sh) |
