Thanks. The last time I built an executable it was 20 years ago :-). I've never built a windows binary before and it looks quite involved!
If anyone does have a link or zip I would appreciate it.
I don't blame you for not wanting to build one as it is one heck of a task.
Having spent the better part of Saturday's first half of the evening trying to compile BFGMiner for windows (and having a complete MinGW environment), I made a fresh git download and all goes well until ...
make[2]: Entering directory `/home/User/bfgminer'
CC bfgminer-miner.o
In file included from ./miner.h:43:0,
from ./sha2.h:39,
from miner.c:68:
miner.c: In function 'have_block_height':
miner.c:2928:48: error: expected ')' before 'PRIx32'
applog(LOG_DEBUG, "Learned that block id %08" PRIx32 " is height %" PRIu32, (u
int32_t)be32toh(block_id), blkheight);
^
miner.c: In function 'work_decode':
miner.c:3150:82: error: expected ')' before 'PRId64'
applog(LOG_WARNING, "Cannot append template-nonce to coinbase on pool %u (
%"PRId64") - you might be wasting hashing!", work->pool->pool_no, (int64_t)ae);
^
miner.c:3161:107: error: expected ')' before 'PRId64'
applog((appenderr ? LOG_DEBUG : LOG_WARNING), "Cannot append coinbase sign
ature at all on pool %u (%"PRId64")", pool->pool_no, (int64_t)ae);
^
miner.c:3200:66: error: expected ')' before 'PRId64'
"Pool %u truncating appended coinbase signature at %"PRId64" bytes:
%s(%s)",
^
miner.c:3208:91: error: expected ')' before 'PRId64'
applog((appenderr ? LOG_DEBUG : LOG_WARNING), "Error appending coinbase si
gnature (%"PRId64")", (int64_t)ae);
^
miner.c: In function 'hashmeter':
miner.c:8337:36: error: expected ')' before 'PRIu64'
applog(LOG_DEBUG, "[thread %d: %"PRIu64" hashes, %.1f khash/sec]",
^
make[2]: *** [bfgminer-miner.o] Error 1
make[2]: Leaving directory `/home/User/bfgminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/User/bfgminer'
make: *** [all] Error 2
I could go into the code and add the odd bracket et all as the error suggests, but then that could spawn another error ....
Now that was from last nite .... and the repository was also downloaded last nite! I am not sure whether the *nix builds are OK, but ....
Any insights?
EDIT:
Like I suspected, after posting I decided to go ahead and edit the errors out, did that, and now .... though some progress, more errors still!
make[2]: Entering directory `/home/User/bfgminer'
CC bfgminer-miner.o
CC bfgminer-deviceapi.o
CC bfgminer-util.o
In file included from winhacks.h:4:0,
from config.h:719,
from util.c:16:
c:\mingw\include\mstcpip.h:17:5: error: expected identifier or '(' before numeri
c constant
_WSAIOW(IOC_VENDOR, 4)
^
In file included from deviceapi.h:10:0,
from lowl-vcom.h:9,
from util.c:60:
util.c: In function 'keep_sockalive':
util.c:327:46: error: expected expression before ',' token
if (unlikely(WSAIoctl(fd, SIO_KEEPALIVE_VALS, &vals, sizeof(vals), NULL, 0, &o
utputBytes, NULL, NULL)))
^
miner.h:173:45: note: in definition of macro 'unlikely'
#define unlikely(expr) (__builtin_expect(!!(expr), 0))
^
util.c: In function 'json_rpc_call_async':
util.c:505:44: error: expected ')' before 'PRIu64'
sprintf(ghashrate, "X-Mining-Hashrate: %"PRIu64, (uint64_t)global_hashrate);
^
In file included from miner.h:43:0,
from deviceapi.h:10,
from lowl-vcom.h:9,
from util.c:60:
util.c: In function 'check_coinbase':
util.c:2485:44: error: expected ')' before 'PRIu64'
applog(LOG_DEBUG, "Coinbase output: %10"PRIu64" -- %s%s", amount, s, ah ? "*
" : "");
^
logging.h:60:35: note: in definition of macro 'applog'
snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
^
util.c:2491:77: error: expected ')' before 'PRIu64'
applogr(false, LOG_ERR, "Coinbase check: lopsided total output amount = %"PRI
u64", expecting >=%"PRIu64, total, cb_param->total);
^
logging.h:60:35: note: in definition of macro 'applog'
snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
^
util.c:2491:3: note: in expansion of macro 'applogr'
applogr(false, LOG_ERR, "Coinbase check: lopsided total output amount = %"PRI
u64", expecting >=%"PRIu64, total, cb_param->total);
^
util.c:2495:74: error: expected ')' before 'PRIu64'
applogr(false, LOG_ERR, "Coinbase check: lopsided target/total = %g(%"PRIu64
"/%"PRIu64"), expecting >=%g", (total ? (double)target / total : (double)0), tar
get, total, cb_param->perc);
^
logging.h:60:35: note: in definition of macro 'applog'
snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
^
util.c:2495:4: note: in expansion of macro 'applogr'
applogr(false, LOG_ERR, "Coinbase check: lopsided target/total = %g(%"PRIu64
"/%"PRIu64"), expecting >=%g", (total ? (double)target / total : (double)0), tar
get, total, cb_param->perc);
^
util.c:2506:90: error: expected ')' before 'PRIu64'
applog(LOG_DEBUG, "Coinbase: (size, pos, addr_count, target, total) = (%lu, %
lu, %d, %"PRIu64", %"PRIu64")", (unsigned long)cbsize, (unsigned long)pos, (int)
(HASH_COUNT(cb_param->scripts)), target, total);
^
logging.h:60:35: note: in definition of macro 'applog'
snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
^
make[2]: *** [bfgminer-util.o] Error 1
make[2]: Leaving directory `/home/User/bfgminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/User/bfgminer'
make: *** [all] Error 2