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

Can you make it clear which compiler I have to use to compile this on Windows? #53

Closed
dandare76 opened this issue Mar 20, 2017 · 10 comments

Comments

@dandare76
Copy link

Hello @fireice-uk,

Please make it clear which compiler can be used to build this on Windows.

I have tried several versions of MinGW64, and couldn't compile it. Each compiler gives different error messages. I have tried to adjust the compilation options, but no success.

So, can you name a version of MinGW64 which can actually compile XMR-Stak-CPU?

Thank you.

@esfomeado
Copy link
Contributor

Use Visual Studio 2015/2017.

@fireice-uk
Copy link
Owner

Target compiler for Windows is Visual Studio 2015 CE - this is what I use to compile Windows releases. Any kind of semi-posix build environment (MinGW64, msys2 etc.) will require you to customise the portability defines as I assume a total lack of posix if Windows is present.

@fireice-uk
Copy link
Owner

If you are looking to compile using msys2, have a look at the changes on this fork:
https://github.com/milkowski/xmr-stak-amd/

@dandare76
Copy link
Author

Thank you very much for the information. I have succesfully compiled it with Visual Studio 2017, it works ok.

@ub14
Copy link

ub14 commented Mar 23, 2017

dandare76, What version did you use Visual Studio 2017 CE or Express?

@malafaya
Copy link

Where can one find microhttpd.lib for Windows?

@fireice-uk
Copy link
Owner

You can compile it from source or download the binary here https://www.gnu.org/software/libmicrohttpd/ Keep in mind that all .libs and the final exe need to have the same static (/MT) or dynamic (/MD) setting for libc.

@smccloud
Copy link

How do you actually compile this on Windows. Do you use the Visual Studio GUI or CLI?

@dandare76
Copy link
Author

It works with Visual Studio GUI.

@psychocrypt
Copy link
Collaborator

You could use Visual Studio 2017 Community Edition but you need to create a project by your own.

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

7 participants