freebsd-static-x64
suffix.The basic build is easy to use on a local machine. However, if you plan to run the miner on other machines, consider using the 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_deps.sh
script 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 wget
2. git clone https://github.com/xmrig/xmrig.git
3. mkdir xmrig/build && cd xmrig/scripts
4. ./build_deps.sh && cd ../build
5. cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON
6. make -j$(sysctl -n hw.ncpu)
Last updated 9 months ago