Skip to content
FSOL-XDAG edited this page Jun 5, 2023 · 21 revisions

Project Overview

x4x_spash

x4x is a XMRIG's fork incorporating randomX algorithm variant for mining XDAG, based on the Swordlet project using XMRig 6.18.0. It's specially designed to improve XDAG mining :

  • the fees have been set to zero for improving mining and to avoid disconnections to XDAG mining pools,
  • algorithms other than RandomX have been removed at compilation (CryptoNight, Argon2, KawPow and GhostRider),
  • CUDA and OpenCL support have been removed at compilation too (GPUs are useless to mine XDAG).

How to Build

CentOS 7

sudo yum update
sudo yum install -y epel-release
sudo yum install -y git make cmake3 gcc gcc-c++ libstdc++-static automake libtool autoconf wget
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
mkdir xmrig-4-xdag/build
cd xmrig-4-xdag/scripts && ./build_deps.sh && cd ../build
cmake3 .. -DXMRIG_DEPS=scripts/deps
make -j$(nproc)

CentOS 8

sudo yum update
sudo dnf install -y epel-release
sudo yum config-manager --set-enabled powertools
sudo dnf install -y git make cmake gcc gcc-c++ libstdc++-static automake libtool autoconf
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
mkdir xmrig-4-xdag/build
cd xmrig-4-xdag/scripts && ./build_deps.sh && cd ../build
cmake .. -DXMRIG_DEPS=scripts/deps
make -j$(nproc)

FreeBSD

freebsd-update fetch install
pkg update && pkg upgrade
pkg install git cmake automake libtool autoconf wget
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
mkdir xmrig-4-xdag/build && cd xmrig-4-xdag/scripts
sh build.uv.sh && sh build.hwloc1.sh && sh build.openssl.sh && cd ../build
cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON
make -j$(sysctl -n hw.ncpu)

HiveOS (Ubuntu 18.04)

miner stop
sudo apt -y update && sudo apt -y upgrade
sudo apt-get install git build-essential cmake automake libtool autoconf
cd
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
mkdir xmrig-4-xdag/build && cd xmrig-4-xdag/scripts
./build_deps.sh && cd ../build
cmake .. -DXMRIG_DEPS=scripts/deps
make -j$(nproc)
miner start

Detailed instructions in this Medium article.

Linux (Ubuntu 20.04 and above)

sudo apt -y update && sudo apt -y upgrade
sudo apt-get install git build-essential cmake automake libtool autoconf
cd
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
mkdir xmrig-4-xdag/build && cd xmrig-4-xdag/scripts
./build_deps.sh && cd ../build
cmake .. -DXMRIG_DEPS=scripts/deps
make -j$(nproc)

Detailed instructions in this Medium article.

Mac

brew update && brew upgrade
cd
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
mkdir xmrig-4-xdag/build && cd xmrig-4-xdag/scripts
./build_deps.sh && cd ../build
cmake .. -DCMAKE_PREFIX_PATH=$(pwd)/../scripts/deps
make -j$(sysctl -n hw.logicalcpu)

Detailed instructions in this Medium article.

Windows (MSYS2)

pacman -Suy
pacman -S mingw-w64-x86_64-gcc git make
git clone https://github.com/FSOL-XDAG/xmrig-4-xdag.git
<need download prebuild lib for windows>
mkdir xmrig-4-xdag/build && cd xmrig-4-xdag/build
"c:\Program Files\CMake\bin\cmake.exe" .. -G "Unix Makefiles" -DXMRIG_DEPS=c:/xmrig-deps/gcc/x64
make -j$(nproc)

Detailed instructions in this Medium article.

XDAG project resources