macOS Installation: XMRig (Crypto Miner Software)

All discussions around cryptocurrency mining on macOS and Apple products. Discussion around the most popular crypto coins today including Bitcoin, Ethereum, and more. Read our getting started guide to understanding cryptocurrency, what you need to get started, and how to earn. What's your Apple Mac setup? Hackintosh? eGPU's? Share your setup and details here.
User avatar
macminergod
Site Admin
Posts: 205
Joined: Mon Feb 22, 2021 7:41 pm

macOS Installation: XMRig (Crypto Miner Software)

Post by macminergod »

XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight and AstroBWT CPU/GPU miner, RandomX benchmark and stratum proxy.


Install XMRig on macOS


Update: You can download and install already to use XMRig here.



1. Install Homebrew. Open Terminal and type:

Code: Select all

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

2. After Homebrew installation completes, install XMRIG. In Terminal, type:

Code: Select all

brew install cmake libuv openssl hwloc

Code: Select all

git clone https://github.com/xmrig/xmrig.git

Code: Select all

mkdir xmrig/build && cd xmrig/build

Code: Select all

cmake .. -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl

Code: Select all

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

3. Next, we need to create a configuration file for XMRig. The XMRig site offers a configuration wizard. Go to https://xmrig.com/wizard and click New Configuration -> Add Pool.


4. Enter your Monero (XMR) wallet address and choose your location the click Add Pool.

Xmrig Configuration Macos New Miner Pool


5. Select Backends. Choose which backends to use for mining crypto on your Mac. Select CPU, if you have an AMD graphics card choose OpenCL, if you have a NVIDIA graphics card choose CUDA.

Xmrig Configuration Macos New Configuration Backends


6. Select Misc. Choose your donation rate back to the developers. You can set this to 0.0% if you choose but will have to be manually edited in the configuration file after.

Xmrig Configuration Macos New Configuration Misc


7. Select Result. Click the download icon to save the configuration file. This will download a file called config.json.

Xmrig Configuration Macos New Configuration Result


8. Now, move the config.json file to your XMRig installation. Go to

Code: Select all

/Hard Drive/Users/user/xmrig/build/
and move the file into the build folder.

Xmrig Configuration Macos New Configuration Config File Build Folder
Xmrig Configuration Macos New Configuration Config File Build Folder (57.56 KiB) Viewed 96144 times



Run XMRig on macOS


1. Open Terminal and navigate to the XMRig install folder:

Code: Select all

cd /Users/user/xmrig/build 

2. Start XMRIg. Type:

Code: Select all

./xmrig

3. XMRig will start mining immediately. If you enabled GPU benchmarking in your configuration file, XMRig will begin compiling your hardware to mine.

Xmrig Macos Running Terminal
Xmrig Macos Running Terminal (505.5 KiB) Viewed 96141 times



How To Check Your Earnings:


1. You need to visit your minerpool website to check your earnings. In most cases, you only need to provide your wallet address to find your workers and earnings report. You can see an example below of a minerpool and earnings:

Xmrig Monero Xmr Balance Mac Os
For Miners Rigs, macOS Hardware GPUs --> here.
amj
Posts: 13
Joined: Thu Mar 18, 2021 12:18 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by amj »

mine RVN (KawPow) please
User avatar
macminergod
Site Admin
Posts: 205
Joined: Mon Feb 22, 2021 7:41 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by macminergod »

amj wrote: Thu Mar 18, 2021 12:20 pm mine RVN (KawPow) please
Hi, have you tried KawPowMiner? I can do an install guide for it.
For Miners Rigs, macOS Hardware GPUs --> here.
amj
Posts: 13
Joined: Thu Mar 18, 2021 12:18 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by amj »

After successfully building, i faced these issues :(

macbook pro 16" (AMD Radeon Pro 5500M 4GB) - Big Sur 11.2.2
kawpowminer 1.2.3+commit.6defed0d
Build: darwin/release/appleclang

i 19:37:56 Configured pool rvn.cruxpool.com:9999
i 19:37:56 Selected pool rvn.cruxpool.com:9999
i 19:37:57 Stratum mode : Stratum
i 19:37:57 Established connection to rvn.cruxpool.com [144.217.180.180:9999]
i 19:37:57 Spinning up miners...
i 19:37:57 Extranonce set to 330b
i 19:37:57 New target set to: 000000027d800000000000000000000000000000000000000000000000000000
i 19:37:57 Epoch : 223 Difficulty : 1.72 Gh
i 19:37:57 Job: 67cf4da5… block 1673861 rvn.cruxpool.com [144.217.180.180:9999]
cl 19:37:58 cl-0 Creating buffers
cl 19:37:58 cl-0 Using PciId : AMD Radeon Pro 5500M Compute Engine OpenCL 1.2 Memory : 3.98 GB
i 19:37:58 cl-0 Adjusting CL work multiplier for 24 CUs. Adjusted work multiplier: 21846
i 19:37:58 Authorized worker RXkG5ufiW8wTUaeYA9sADw6tmcyZ84KFLG.amr
cl 19:37:58 cl-0 Unable to lower compiler priority.
X 19:37:58 cl-0 OpenCL kernel build log:
:220:6: warning: no previous prototype for function 'keccak_f800_round'
void keccak_f800_round(uint32_t st[25], const int r)
^
:265:10: warning: no previous prototype for function 'keccak_f800'
uint64_t keccak_f800(uint32_t* st)
^
:272:1: warning: control reaches end of non-void function
}
^
:284:10: warning: no previous prototype for function 'kiss99'
uint32_t kiss99(kiss99_t* st)
^
:296:6: warning: no previous prototype for function 'fill_mix'
void fill_mix(local uint32_t* seed, uint32_t lane_id, uint32_t* mix)
^
:409:18: error: passing 'uint32_t *' (aka 'unsigned int *') to parameter of type '__local uint32_t ' (aka '__local unsigned int ') changes address space of pointer
fill_mix(share[group_id].uint32s, lane_id, mix);
^~~~~~~~~~~~~~~~~~~~~~~
:296:31: note: passing argument to parameter 'seed' here
void fill_mix(local uint32_t seed, uint32_t lane_id, uint32_t mix)
^
:491:9: warning: 'FNV_PRIME' macro redefined
#define FNV_PRIME 0x01000193
^
:185:9: note: previous definition is here
#define FNV_PRIME 0x1000193
^
:537:26: warning: unknown OpenCL extension 'cl_amd_media_ops' - ignoring
#pragma OPENCL EXTENSION cl_amd_media_ops : enable
^
:542:16: warning: implicit declaration of function 'amd_bitalign' is invalid in C99
return amd_bitalign((vv).xy, (vv).yx, 32 - r);
^

X 19:37:58 cl-0 OpenCL kernel build error (-11):
clBuildProgram
cl 19:37:59 cl-0 Loaded period 557953 progpow kernel
cl 19:37:59 cl-0 Unable to lower compiler priority.
X 19:37:59 cl-0 OpenCL kernel build log:
amj
Posts: 13
Joined: Thu Mar 18, 2021 12:18 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by amj »

hint:

try to build with forked: https://github.com/hwh57/kawpowminer
cd desktop
git clone https://github.com/hwh57/kawpowminer
cd kawpowminer
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DETHASHCL=ON -DETHASHCUDA=OFF
make -sj $(nproc)
the original "kawpowminer" got some issues when building !!
amj
Posts: 13
Joined: Thu Mar 18, 2021 12:18 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by amj »

error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram

IMG_1218
IMG_1218 (1.58 MiB) Viewed 96097 times
after build
User avatar
macminergod
Site Admin
Posts: 205
Joined: Mon Feb 22, 2021 7:41 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by macminergod »

amj wrote: Sun Mar 21, 2021 3:53 pm after build

error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram
My understanding is OPENCl and Xmrig won’t work, very depreciated in macOS. I looked on GitHub and everyone has same issue with Mac GPU’s. Need to compile Ethminer, which I’m working on and will document M1 and AMD mining speeds
For Miners Rigs, macOS Hardware GPUs --> here.
gerumanium
Posts: 1
Joined: Tue May 11, 2021 3:49 am

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by gerumanium »

is something wrong? help me please.
Attachments
when im installing brew, ive got this. is something wrong?
when im installing brew, ive got this. is something wrong?
Screen Shot 2021 05 11 At 11.54.18 AM (48.08 KiB) Viewed 95986 times
User avatar
macminergod
Site Admin
Posts: 205
Joined: Mon Feb 22, 2021 7:41 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by macminergod »

gerumanium wrote: Tue May 11, 2021 3:56 am is something wrong? help me please.
You don't need brew to install, use the compiled version from XMRig. It runs out of the box
For Miners Rigs, macOS Hardware GPUs --> here.
val3rie
Posts: 11
Joined: Mon Jun 21, 2021 1:48 pm

Re: macOS Installation: XMRig (Crypto Miner Software)

Post by val3rie »

So it's not possible to mine with xmrig using the GPU?
Post Reply