Jump to content

How to compile and use XMRig for Monero RandomX Mining on Apple Silicon M1 Chip!


Ghost
 Share

Recommended Posts

How to compile and use XMRig for Monero XMR RandomX Mining on Apple Silicon M1 Chip!

To break this down some, you may want to install MacPorts to install any required deps including XCode to be able to install MacPorts etc. the `make -j$(sysctl -n hw.logicalcpu)` can be changed to just make -j8 to use all 8 of the Apple M1 cores to compile. After compiling successfully, essentially run XMRig like you usually would with your configuration to start mining XMR on Apple Silicon!

git clone -b dev https://github.com/xmrig/xmrig.git

mkdir xmrig/build && cd xmrig/scripts

./build.hwloc.sh && cd ../build

cmake .. -DUV_INCLUDE_DIR=/opt/homebrew/include -DUV_LIBRARY=/opt/homebrew/lib/libuv.a -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl -DHWLOC_INCLUDE_DIR=../scripts/deps/include -DHWLOC_LIBRARY=../scripts/deps/lib/libhwloc.a

make -j$(sysctl -n hw.logicalcpu)
  • Like 1

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n

100703395-b1ee6600-3360-11eb-82bc-96818c

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...