6

I'd like to try building the Bitcoin core source in Windows. The instructive materials I've found take too much for granted. What environment needs to be installed before building? Can it be built in Visual Studio, or is it one of those cross-compilers like MingGW that compiles code originally written for Linux so it can be executed in Windows?

1
  • 1
    Generally all release builds are cross compiled from Linux, so you might struggle to find reliable material on doing so (it might even be impossible, I don't know).
    – Claris
    Commented Dec 23, 2015 at 0:00

2 Answers 2

1

With windows 10 you can now run linux directly on windows with the Windows Subsystem for Linux

or is it one of those cross-compilers like MingGW that compiles code originally written for Linux so it can be executed in Windows?

There is some option to build bitcoin core without MingGW by using cygwin, msys2 or Visual Studio

Here is a complete guide: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md

1

In the past, the standard method of building for Windows has been to use MinGW. Either have MinGW on Windows and compile from within it (may be more difficult) or cross compile it from a Linux environment.

However, fairly recently, support for using MSVC has been added. Although the official binaries do not use MSVC, you can self compile using it. We even have CI that makes sure that everything builds under MSVC.

Instructions and the necessary project files can be found at https://github.com/bitcoin/bitcoin/tree/master/build_msvc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.