Update to openssl-1.0.0d and enable RPC-SSL on Win32
[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 WINDOWS BUILD NOTES
11 ===================
12
13 Compilers Supported
14 -------------------
15 MinGW GCC  http://tdm-gcc.tdragon.net/
16    TDM-GCC with gcc 4.5.1 was used to build this release.
17 MSYS 1.0.11 was also used (sh needed to compile some dependencies)
18
19
20 Candidate releases were built with MSVC 10.0 (2010), but
21 compiling with Visual C++ caused rendering artifacts when
22 bitcoin was run.
23
24
25 Dependencies
26 ------------
27 Libraries you need to download separately and build:
28
29                 default path               download
30 wxWidgets       \wxwidgets-2.9.1-mgw       http://www.wxwidgets.org/downloads/
31 OpenSSL         \openssl-1.0.0d-mgw        http://www.openssl.org/source/
32 Berkeley DB     \db-4.7.25.NC-mgw          http://www.oracle.com/technology/software/products/berkeley-db/index.html
33 Boost           \boost-1.43.0-mgw          http://www.boost.org/users/download/
34 miniupnpc       \upnpc-exe-win32-20110215  http://miniupnp.tuxfamily.org/files/
35
36 Their licenses:
37 wxWidgets      LGPL 2.1 with very liberal exceptions
38 OpenSSL        Old BSD license with the problematic advertising requirement
39 Berkeley DB    New BSD license with additional requirement that linked software must be free open source
40 Boost          MIT-like license
41 miniupnpc      New (3-clause) BSD license
42
43 Versions used in this release:
44 wxWidgets    2.9.1
45 OpenSSL      1.0.0d
46 Berkeley DB  4.7.25.NC
47 Boost        1.43.0
48 miniupnpc    1.5-20110215
49
50
51 Notes
52 -----
53 The UI layout is edited with wxFormBuilder.  The project file is
54 uiproject.fbp.  It generates uibase.cpp and uibase.h, which define base
55 classes that do the rote work of constructing all the UI elements.
56
57 wxWidgets
58 ---------
59 DOS shell:
60 cd \wxWidgets-2.9.1-mgw\build\msw
61 mingw32-make -f makefile.gcc
62
63 OpenSSL
64 -------
65 MSYS shell:
66 un-tar sources with MSYS 'tar xfz' to avoid issue with symlinks (OpenSSL ticket 2377)
67 change 'MAKE' env. variable from 'C:\MinGW32\bin\mingw32-make.exe' to '/c/MinGW32/bin/mingw32-make.exe'
68
69 cd /c/openssl-1.0.0d-mgw
70 ./config
71 make
72
73 Berkeley DB
74 -----------
75 MSYS shell:
76 cd /c/db-4.7.25.NC-mgw/build_unix
77 sh ../dist/configure --enable-mingw --enable-cxx
78 make
79
80
81 Boost
82 -----
83 DOS prompt:
84 downloaded boost jam 3.1.18
85 cd \boost-1.43.0-mgw
86 bjam toolset=gcc --build-type=complete stage
87
88 Note:
89 building with boost 1.45.0 failed because of boost ticket 4614, 4258
90 builds fine with boost 1.43.0
91
92 MiniUPnPc
93 ---------
94 Building miniupnpc failed on Windows Server 2003, thus it is expected that a binary copy will be used.
95 See http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=642
96 UPnP support is optional, make with USE_UPNP= to disable it.
97
98 Get upnpc-exe-win32-20110215.zip and unzip it to \upnpc-exe-win32-20110215
99 Get miniupnpc-1.5.20110215.tar.gz and copy *.h to \upnpc-exe-win32-20110215\miniupnpc
100
101 Bitcoin
102 -------
103 DOS prompt:
104 cd \bitcoin\src
105 mingw32-make bitcoin.exe bitcoind.exe -f makefile.mingw
106 strip bitcoin.exe
107 strip bitcoind.exe