f3150e086e9b1f8378667d804b70a768cda15971
[novacoin.git] / doc / build-msw.txt
1 Copyright (c) 2009-2011 Bitcoin Developers
2 Distributed under the MIT/X11 software license, see the accompanying
3 file license.txt or http://www.opensource.org/licenses/mit-license.php.
4 This product includes software developed by the OpenSSL Project for use in
5 the OpenSSL Toolkit (http://www.openssl.org/).  This product includes
6 cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP
7 software written by Thomas Bernard.
8
9
10 See readme-qt.rst for instructions on building Bitcoin QT, the
11 graphical user interface.
12
13 WINDOWS BUILD NOTES
14 ===================
15
16 Compilers Supported
17 -------------------
18 MinGW GCC  http://tdm-gcc.tdragon.net/
19    TDM-GCC with gcc 4.5.1 was used to build this release.
20 MSYS 1.0.11 was also used (sh needed to compile some dependencies)
21
22
23 Candidate releases were built with MSVC 10.0 (2010), but
24 compiling with Visual C++ caused rendering artifacts when
25 bitcoin was run.
26
27
28 Dependencies
29 ------------
30 Libraries you need to download separately and build:
31
32                 default path               download
33 OpenSSL         \openssl-1.0.0d-mgw        http://www.openssl.org/source/
34 Berkeley DB     \db-4.8.30.NC-mgw          http://www.oracle.com/technology/software/products/berkeley-db/index.html
35 Boost           \boost-1.47.0-mgw          http://www.boost.org/users/download/
36 miniupnpc       \miniupnpc-1.6-mgw         http://miniupnp.tuxfamily.org/files/
37
38 Their licenses:
39 OpenSSL        Old BSD license with the problematic advertising requirement
40 Berkeley DB    New BSD license with additional requirement that linked software must be free open source
41 Boost          MIT-like license
42 miniupnpc      New (3-clause) BSD license
43
44 Versions used in this release:
45 OpenSSL      1.0.0d
46 Berkeley DB  4.8.30.NC
47 Boost        1.47.0
48 miniupnpc    1.6
49
50
51 OpenSSL
52 -------
53 MSYS shell:
54 un-tar sources with MSYS 'tar xfz' to avoid issue with symlinks (OpenSSL ticket 2377)
55 change 'MAKE' env. variable from 'C:\MinGW32\bin\mingw32-make.exe' to '/c/MinGW32/bin/mingw32-make.exe'
56
57 cd /c/openssl-1.0.0d-mgw
58 ./config
59 make
60
61 Berkeley DB
62 -----------
63 MSYS shell:
64 cd /c/db-4.8.30.NC-mgw/build_unix
65 sh ../dist/configure --enable-mingw --enable-cxx
66 make
67
68 Boost
69 -----
70 DOS prompt:
71 downloaded boost jam 3.1.18
72 cd \boost-1.47.0-mgw
73 bjam toolset=gcc --build-type=complete stage
74
75 MiniUPnPc
76 ---------
77 UPnP support is optional, make with USE_UPNP= to disable it.
78
79 MSYS shell:
80 cd /c/miniupnpc-1.6-mgw
81 make -f Makefile.mingw
82 mkdir miniupnpc
83 cp *.h miniupnpc/
84
85 Bitcoin
86 -------
87 DOS prompt:
88 cd \bitcoin\src
89 mingw32-make bitcoind.exe -f makefile.mingw
90 strip bitcoind.exe