Merge #7954: build: quiet annoying warnings without adding new ones
[bitcoinplatinum.git] / doc / build-windows.md
blob2b9233d1e140631d3bc18a311a7737981710b87d
1 WINDOWS BUILD NOTES
2 ====================
4 Some notes on how to build Bitcoin Core for Windows.
6 Most developers use cross-compilation from Ubuntu to build executables for
7 Windows. This is also used to build the release binaries.
9 Building on Windows itself is possible (for example using msys / mingw-w64),
10 but no one documented the steps to do this. If you are doing this, please contribute them.
12 Cross-compilation
13 -------------------
15 These steps can be performed on, for example, an Ubuntu VM. The depends system
16 will also work on other Linux distributions, however the commands for
17 installing the toolchain will be different.
19 First install the toolchains:
21     sudo apt-get install g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 mingw-w64-x86-64-dev
23 To build executables for Windows 32-bit:
25     cd depends
26     make HOST=i686-w64-mingw32 -j4
27     cd ..
28     ./configure --prefix=`pwd`/depends/i686-w64-mingw32
29     make
31 To build executables for Windows 64-bit:
33     cd depends
34     make HOST=x86_64-w64-mingw32 -j4
35     cd ..
36     ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
37     make
39 For further documentation on the depends system see [README.md](../depends/README.md) in the depends directory.