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

Windows target #451

Closed
ofek opened this issue Mar 24, 2017 · 10 comments
Closed

Windows target #451

ofek opened this issue Mar 24, 2017 · 10 comments

Comments

@ofek
Copy link

ofek commented Mar 24, 2017

How do you build this for (or on) Windows?

@chfast
Copy link

chfast commented Apr 26, 2017

@ofek
Copy link
Author

ofek commented Apr 26, 2017

@chfast
Copy link

chfast commented Apr 26, 2017

You can configure libsecp256k1 not to use GMP at all. Option is --with-bignum=none.

@ofek
Copy link
Author

ofek commented Apr 26, 2017

Oh yes but I'd like to use it. Have you tried building for Windows with gmp?

@chfast
Copy link

chfast commented Apr 26, 2017

I don't think you can build GMP with Visual Studio. I suggest using MPIR instead. It is compatible with GMP.

@ofek
Copy link
Author

ofek commented Apr 26, 2017

Looks interesting, thanks!

@chfast
Copy link

chfast commented Apr 26, 2017

I'm also trying to provide CMake support for it. wbhart/mpir#215.

@laanwj
Copy link
Member

laanwj commented May 7, 2017

Including secp256k1 in any project is easy as it's a single-file library. Though if you use another build system make sure that the correct defines for your platform are set, either in libsecp256k1-config.h (and HAVE_CONFIG_H set) or otherwise.

@ghost
Copy link

ghost commented Oct 9, 2018

@laanwj that file doesnt exist. im trying to cross compile from WSL, so far im trying --build=x86_64-w64-mingw32 without luck

@kroggen
Copy link

kroggen commented Dec 16, 2020

Just sharing another method using GitHub Actions and Visual C

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

5 participants