pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.76k stars 1.21k forks source link

[Suggestion] Cross-compiling for Windows from Linux #215

Open efokschaner opened 3 years ago

efokschaner commented 3 years ago

Firstly, thanks for the work that has gone in to cpuminer. It worked great while so many other non-asic miners did not.

I got cross-compilation working for Windows from Linux and wanted to share the mechanism for that, in case others find it useful or you wanted to incorporate it as an alternative for direct compilation on Windows.

See here: https://github.com/efokschaner/holdcoin/blob/holdcoin/holdcoin/cpuminer/Dockerfile

It likely needs some tweaks before I'd recommend using it for something like a release build, Eg. Pinning curl, and making sure the TLS support is correct if needed.

If you're interested in this and would rather I open a PR, just let me know where in the tree you'd want this.

Thanks!

liorko87 commented 3 years ago

I tested it on mu Ubuntu 20.04 machine (not docker image) and it compiled as expected. Thanks!