freebsd-static-x64
suffix.Basic build is good for local machine, because it is easy, but if you need to run the miner on other machines please take a look at advanced build.
1. pkg install git cmake libuv openssl hwloc
2. git clone https://github.com/xmrig/xmrig.git
3. mkdir xmrig/build && cd xmrig/build
4. cmake ..
5. make -j$(sysctl -n hw.ncpu)
We use build.uv.sh
, build.hwloc1.sh
and build.openssl.sh
scripts to build recent versions of libuv, openssl and hwloc as static libraries. We also use option -DBUILD_STATIC=ON
to create a fully static executable without any dependencies, GPUs backeds not compatible with this option, resulting binary will be CPU only.
1. pkg install git cmake automake libtool autoconf
2. git clone https://github.com/xmrig/xmrig.git
3. mkdir xmrig/build && cd xmrig/scripts
4. sh build.uv.sh && sh build.hwloc1.sh && sh build.openssl.sh && cd ../build
5. cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON
6. make -j$(sysctl -n hw.ncpu)