Build Options
The following options are known to work for building Bitcoin Core on Windows:- On Linux, using the Mingw-w64 cross compiler tool chain
- On Windows, using Windows Subsystem for Linux (WSL) and Mingw-w64
- On Windows, using Microsoft Visual Studio - see build-windows-msvc.md
The instructions below work on Ubuntu and Debian. Make sure the distribution’s
g++-mingw-w64-x86-64-posix package meets the minimum required g++ version specified in dependencies.md.Installing Windows Subsystem for Linux
If you’re building on Windows, first install WSL by following the upstream installation instructions: WSL Installation GuideCross-Compilation for Ubuntu and WSL
The steps below can be performed on Ubuntu or WSL. The depends system will also work on other Linux distributions, however the commands for installing the toolchain will be different.Install NSIS (optional)
If you want to build the Windows installer using the
deploy build target, install NSIS:Build using the depends system
Build the dependencies and configure the build:To see all available configuration options:
Depends System
For further documentation on the depends system, see README.md in thedepends/ directory of the source code and the dependencies documentation.
Installation
After building using the Windows subsystem, it can be useful to copy the compiled executables to a directory on the Windows drive in the same directory structure as they appear in the release.zip archive.
Standard Installation
This will install toc:\workspace\bitcoin, for example:
Due to the presence of debug information, the binaries may be very large.
Installation Without Debug Symbols
If you do not need debug information, you can prune it during install:Creating an Installer
You can also create a Windows installer:This requires NSIS to be installed (see Step 1 above).