(Now I got Win32-nheqminer.) How to make cpuminer-zcash work on win32?

-----About nheqminer-----

I ve compiled nheqminer statically for win32(including WinXP).
You can find the binary here: GitHub - imacompiler/nheqminer-4-win32: CAUSION: This is a CPU ONLY miner for Zcash!This is binary(or -ies) which is statically built for windows 32-bit.


Recently, I got a cpuminer for zcash from GitHub - dakk/cpuminer-zcash: CPU miner for Zcash And compile it with MinGW under Windows XP, which is the same system as the target computer.

I have modified the git to fix some issue.

Modify Makefile by hand: Change ‘-std=c++11’ to ‘-std=gnu++0x’ to make the function ‘strdup’ work.
Add a portable_endian.h from portable_endian.h · GitHub and included it into equihash/equihash.cpp to fix errors about ‘htole32’.
Modified sha2.cpp and miner.h to fix "undefiened reference of ‘sha256_use_4way()’ "

And I got the binary, with some issue:

$minerd -o cn1-zcash.flypool.org:3333 -a equihash -u (my.wallet).work1
[2016-12-13 00:11:30] Binding thread 7 to cpu 7
[2016-12-13 00:11:30] 8 miner threads started, using algorithm.
[2016-12-13 00:11:30] Binding thread 1 to cpu 1
[2016-12-13 00:11:30] Binding thread 3 to cpu 3
[2016-12-13 00:11:30] Binding thread 5 to cpu 5
[2016-12-13 00:11:30] Binding thread 4 to cpu 4
[2016-12-13 00:11:30] Binding thread 0 to cpu 0
[2016-12-13 00:11:30] Binding thread 6 to cpu 6
[2016-12-13 00:11:30] Binding thread 2 to cpu 2
[2016-12-13 00:11:30] HTTP request failed: Recv failure: Connection reset by peer
[2016-12-13 00:11:30] json_rpc_call failed, retry after 30 seconds
[2016-12-13 00:12:01] JSON-RPC call failed: [ 20, “Invalid JSON request”]
[2016-12-13 00:12:01] getblocktemplate failed, falling back to getwork
[2016-12-13 00:12:01] JSON-RPC call failed: [ 20, “Invalid JSON request”]
[2016-12-13 00:12:01] json_rpc_call failed, retry after 30 seconds

And if I use stratum-style address:

$ minerd -o stratum+tcp://cn1-zcash.flypool.org:3333 -a equihash -u (mywallet).work1
[2016-12-13 00:53:19] Starting Stratum on stratum+tcp://cn1-zcash.flypool.org:3333
[2016-12-13 00:53:19] Binding thread 5 to cpu 5
[2016-12-13 00:53:19] Binding thread 4 to cpu 4
[2016-12-13 00:53:19] Binding thread 2 to cpu 2
[2016-12-13 00:53:19] Binding thread 3 to cpu 3
[2016-12-13 00:53:19] Binding thread 6 to cpu 6
[2016-12-13 00:53:19] Binding thread 7 to cpu 7
[2016-12-13 00:53:19] Binding thread 0 to cpu 0
[2016-12-13 00:53:19] Binding thread 1 to cpu 1
[2016-12-13 00:53:19] 8 miner threads started, using algorithm.
[2016-12-13 00:53:24] Failed to get extranonce2_size
[2016-12-13 00:53:25] Failed to get extranonce2_size
[2016-12-13 00:53:25] …retry after 30s

How can I make it work as a normal miner?

My goal is got a miner, which can run under Windows XP 32bit, using cpus to mine zcash. So is there anybody know how to deal with the problem, or have a usable win32 zcash miner?

Is the CPU only 32bit or just the OS? If 64 bit CPU jump over to Ubuntu Linux though if it’s a XP machine it probably only has a 32 bit CPU… Not sure what you can do.

Do you have any advice about VM? Which with CLI interface, multi-core support and can run fine without installing is the best.

Or is there anyone can build a nheqminer from GitHub - kost/nheqminer: Currently fastest public CPU Equihash/zcash/zec miner ?
Because it can run with armv7 32bit, I think it should be okay to make it run under WinXP 32bit.
And I have compiled a static binary for linux 32bit sucessfully…:slight_smile:

sorry for self-promotion, you may try GitHub - mtve/yazecminer: yet another ZEC miner

Thanks, I’ll try it with WinXP later.:blush:
BTW, it will be better if multi-thread is supported.

Sorry😭, but it cannot be compiled with MinGW because it is using something that MinGW doesn’t support such as:

netdb.h
sys/socket.h
netinet/in.h

Please make the miner compatible with MinGW or release an excutable which can run with WinXP 32bit.:sob:
Thanks.

WinXP is unsupported by the latest version of cygwin and I cannot find a previous version of it so I cannot try to compile it with cygwin.

A huge THANKS to you! Cygwin successfully compiled it and it is running fine. THANKS!

Btw, if you can add multi-thread support, it will be better!

Can you update git for actual code to implement to install, newbie miner here and need step by step terminal plz ? have loaded on drone for cpumining on 32B -ubuntu 16.04
:slight_smile:

I have tried to compile 32bit version to both Windows and Linux with XENONCAT, but both of them r failed.
Maybe XENONCAT is 64-bit ONLY?
You should do these in the build dir:
make clean
rm -rf *
And then, run cmake as you did before, but without ‘-DXENON=1’, you may get the binary.

I ve compiled nheqminer statically for win32(including WinXP).
You can find the binary here: GitHub - imacompiler/nheqminer-4-win32: CAUSION: This is a CPU ONLY miner for Zcash!This is binary(or -ies) which is statically built for windows 32-bit.