cpuminer icon indicating copy to clipboard operation
cpuminer copied to clipboard

[Suggestion] Cross-compiling for Windows from Linux

Open efokschaner opened this issue 4 years ago • 1 comments

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!

efokschaner avatar Feb 13 '21 17:02 efokschaner

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

liorko87 avatar Mar 25 '21 14:03 liorko87