Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
efokschaner opened this issue Feb 13, 2021 · 1 comment
Open

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

efokschaner opened this issue Feb 13, 2021 · 1 comment

Comments

@efokschaner
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants