Compile XDAG miner for Mac intel

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

FSOL
3 min readOct 19, 2022

--

This tutorial is inspired by the documentation from the official XMRIG website (https://xmrig.com/docs/miner/build/macos) with some adaptations related to XDAG’s XMRIG fork.

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

Photo : Karsten Madsen / pexels.com

1°) Install brew

Paste that in a macOS Terminal shell prompt :

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After type your password, you should get this :

Press ENTER and wait till the end.

2°) Clone xmrig (xdag fork) sources

cd 
mkdir github && cd github
git clone --branch xdag https://github.com/swordlet/xmrig.git

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
./build_deps.sh && 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 :

./xmrig

And ‘Hocus-pocus’ you should get this :

BRAVO ! You did it !!!

Many many thanks to :

--

--