Update all copyrights to 2012
[novacoin.git] / doc / build-msw.txt
1 Copyright (c) 2009-2012 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 TODO: What works?
19 Note: releases are cross-compiled using mingw running on Linux.
20
21
22 Dependencies
23 ------------
24 Libraries you need to download separately and build:
25
26                 default path               download
27 OpenSSL         \openssl-1.0.0d-mgw        http://www.openssl.org/source/
28 Berkeley DB     \db-4.8.30.NC-mgw          http://www.oracle.com/technology/software/products/berkeley-db/index.html
29 Boost           \boost-1.47.0-mgw          http://www.boost.org/users/download/
30 miniupnpc       \miniupnpc-1.6-mgw         http://miniupnp.tuxfamily.org/files/
31
32 Their licenses:
33 OpenSSL        Old BSD license with the problematic advertising requirement
34 Berkeley DB    New BSD license with additional requirement that linked software must be free open source
35 Boost          MIT-like license
36 miniupnpc      New (3-clause) BSD license
37
38 Versions used in this release:
39 OpenSSL      1.0.0e
40 Berkeley DB  4.8.30.NC
41 Boost        1.47.0
42 miniupnpc    1.6
43
44
45 OpenSSL
46 -------
47 MSYS shell:
48 un-tar sources with MSYS 'tar xfz' to avoid issue with symlinks (OpenSSL ticket 2377)
49 change 'MAKE' env. variable from 'C:\MinGW32\bin\mingw32-make.exe' to '/c/MinGW32/bin/mingw32-make.exe'
50
51 cd /c/openssl-1.0.0e-mgw
52 ./config
53 make
54
55 Berkeley DB
56 -----------
57 MSYS shell:
58 cd /c/db-4.8.30.NC-mgw/build_unix
59 sh ../dist/configure --enable-mingw --enable-cxx
60 make
61
62 Boost
63 -----
64 DOS prompt:
65 downloaded boost jam 3.1.18
66 cd \boost-1.47.0-mgw
67 bjam toolset=gcc --build-type=complete stage
68
69 MiniUPnPc
70 ---------
71 UPnP support is optional, make with USE_UPNP= to disable it.
72
73 MSYS shell:
74 cd /c/miniupnpc-1.6-mgw
75 make -f Makefile.mingw
76 mkdir miniupnpc
77 cp *.h miniupnpc/
78
79 Bitcoin
80 -------
81 DOS prompt:
82 cd \bitcoin\src
83 mingw32-make -f makefile.mingw
84 strip bitcoind.exe