Windows target #451

issue ofek openend this issue on March 24, 2017
  1. ofek commented at 6:54 pm on March 24, 2017: none
    How do you build this for (or on) Windows?
  2. chfast commented at 8:12 am on April 26, 2017: none
  3. ofek commented at 6:44 pm on April 26, 2017: none

    I’ve figured it out https://github.com/ofek/coincurve/blob/master/.travis/prepare_windows_build.sh / https://github.com/ofek/coincurve/blob/master/.travis/build_windows_wheels.sh

    Though, I don’t know how to build libgmp for Windows for use with libsecp256k1.

  4. chfast commented at 7:42 pm on April 26, 2017: none
    You can configure libsecp256k1 not to use GMP at all. Option is --with-bignum=none.
  5. ofek commented at 7:50 pm on April 26, 2017: none
    Oh yes but I’d like to use it. Have you tried building for Windows with gmp?
  6. chfast commented at 7:54 pm on April 26, 2017: none
    I don’t think you can build GMP with Visual Studio. I suggest using MPIR instead. It is compatible with GMP.
  7. ofek commented at 8:01 pm on April 26, 2017: none
    Looks interesting, thanks!
  8. chfast commented at 8:06 pm on April 26, 2017: none
    I’m also trying to provide CMake support for it. https://github.com/wbhart/mpir/pull/215.
  9. laanwj commented at 8:10 am on May 7, 2017: member
    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.
  10. ghost commented at 11:23 pm on October 9, 2018: none
    @laanwj that file doesnt exist. im trying to cross compile from WSL, so far im trying --build=x86_64-w64-mingw32 without luck
  11. gmaxwell closed this on May 29, 2019

  12. kroggen commented at 6:10 pm on December 16, 2020: none
    Just sharing another method using GitHub Actions and Visual C
  13. real-or-random cross-referenced this on Mar 23, 2021 from issue General CI discussion by real-or-random

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-30 05:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me