Compile XDAG miner for Mac intel

How to compile XDAG’s XMRIG fork miner for Mac intel (to 2020).

3 min readOct 19, 2022


This tutorial is inspired by the documentation from the official XMRIG website ( with some adaptations related to XDAG’s XMRIG fork.

Required : Mac intel to 2020 / Mac OS 10.15 or better

Photo : Karsten Madsen /

1°) Install brew

Paste that in a macOS Terminal shell prompt :

/bin/bash -c "$(curl -fsSL"

After type your password, you should get this :

Press ENTER and wait till the end.

2°) Clone xmrig (xdag fork) sources

mkdir github && cd github
git clone --branch xdag

You’ll get something like this :

Optional :

If you want building ‘0 fee’ release, you should edit (with VSCODE by example)/github/xmrig/src/donate.h and modify lines 40 & 41 like this :

3°) Build something

mkdir xmrig/build && cd xmrig/scripts
./ && cd ../build

And then you’ll get this result after few minutes :

4°) Build program

cmake .. -DCMAKE_PREFIX_PATH=$(pwd)/../scripts/deps

Result :

make -j$(sysctl -n hw.logicalcpu)

You should get this :

Check the result :

ls -l
File appear on last line

5°) Proof Of Work

Copy your usual config.json file, already containing your wallet address & goods settings pool.

Run it :


And ‘Hocus-pocus’ you should get this :

BRAVO ! You did it !!!

Many many thanks to :