How to compile the CPU miner for Windows 64-bit:
1. Download and install Cygwin 64-bit setup from
https://cygwin.com/install.html 2. Run the setup as administrator. Use defaults until you get to the package
selection screen. Find these packages one by one and click next to them where
it says 'skip' to mark them for installation (skip should change to a version number):
Archive/unzip
Devel/automake (all)
Devel/gcc-g++
Devel/git
Devel/make
Libs/libcurl-devel
Libs/libcurl4
Web/wget
3. Hit next, then next again to mark all dependencies and begin downloading /
installing packages.
4. Wait a few minutes for everything to finish downloading/installing.
5. Hit finish.
6. Open a cygwin terminal as administrator either by going to Start menu -> Cygwin
-> Cygwin 64 terminal, or runing C:\Cygwin64\cygwin.bat. All future commands are
done from this terminal.
7. Download BitBlock-cpuminer source from their github using the following command:
git clone
https://github.com/bitblockproject/Bitblock-CPUminer.git 8. Change dirs:
cd Bitblock-CPUminer
9. Mark autogen.sh as executable:
chmod +x autogen.sh
10. Run autogen.sh
./autogen.sh
11. Run the configure script, optimizing it for speed:
CFLAGS="-O3 -march=native" ./configure
12. Compile it:
make
13. Assuming you have no errors, run it in benchmark mode:
./minerd.exe -a bitblock --benchmark
14. If it works and gives you a hashrate, congratulations, you now have a
Windows version of bitblock-cpuminer ready to go. The next steps describe how
to mine.
15. Download the wallet from the OP.
16. Run it and let it sync the blockchain.
17. Close it.
18. Create a bitblock.conf file in BitBlock APPDATA folder with the following in it:
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=8889
port=8888
daemon=1
server=1
gen=0
19. Restart BitBlock wallet.
20. Run your minerd.exe like the following:
./minerd.exe -a bitblock -o
http://127.0.0.1:8889 -O user:password
21. You are now solo mining!
22. To mine on a pool, just re-run minerd.exe like this:
./minerd.exe -a bitblock -o stratum://pool-goes-here.com:9339 -O user:password