# Building cpuminer-opt-rinhash on Windows ## Prerequisites 1. Install MSYS2 from https://www.msys2.org/ 2. Open MSYS2 terminal and install build dependencies: ```bash # 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 1. Open MSYS2 MinGW 64-bit terminal (not the regular MSYS2 terminal) 2. Navigate to the cpuminer directory 3. Run the build commands: ```bash 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: ```bash ./cpuminer.exe -a rinhash -o stratum+tcp://your-pool:port -u your-username -p x -t 4 ```