1.1 KiB
1.1 KiB
Building cpuminer-opt-rinhash on Windows
Prerequisites
- Install MSYS2 from https://www.msys2.org/
- Open MSYS2 terminal and install build dependencies:
# Update package database
pacman -Syu
# Install build tools and dependencies
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-curl mingw-w64-x86_64-jansson mingw-w64-x86_64-openssl mingw-w64-x86_64-gmp mingw-w64-x86_64-zlib mingw-w64-x86_64-autotools mingw-w64-x86_64-pkg-config
Build Process
- Open MSYS2 MinGW 64-bit terminal (not the regular MSYS2 terminal)
- Navigate to the cpuminer directory
- Run the build commands:
cd /f/projects/mines/rin/miner/cpuminer
./autogen.sh
./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer"
make -j$(nproc)
Alternative: Use Pre-built Binary
Since the repository already contains Windows DLLs and object files, you might be able to complete the build with just the linking step.
Test the Miner
Once built, test with:
./cpuminer.exe -a rinhash -o stratum+tcp://your-pool:port -u your-username -p x -t 4