Windows build: compile against openssl 1.0.1b
[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.2-mgw       http://www.wxwidgets.org/downloads/
31 OpenSSL         \openssl-1.0.1b-mgw        http://www.openssl.org/source/
32 Berkeley DB     \db-4.8.30.NC-mgw          http://www.oracle.com/technology/software/products/berkeley-db/index.html
33 Boost           \boost-1.47.0-mgw          http://www.boost.org/users/download/
34 miniupnpc       \miniupnpc-1.6-mgw         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.2
45 OpenSSL      1.0.1b
46 Berkeley DB  4.8.30.NC
47 Boost        1.47.0
48 miniupnpc    1.6
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.2-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.1b-mgw
70 ./config
71 make
72
73 Berkeley DB
74 -----------
75 MSYS shell:
76 cd /c/db-4.8.30.NC-mgw/build_unix
77 sh ../dist/configure --enable-mingw --enable-cxx
78 make
79
80 Boost
81 -----
82 DOS prompt:
83 downloaded boost jam 3.1.18
84 cd \boost-1.47.0-mgw
85 bjam toolset=gcc --build-type=complete stage
86
87 MiniUPnPc
88 ---------
89 UPnP support is optional, make with USE_UPNP= to disable it.
90
91 MSYS shell:
92 cd /c/miniupnpc-1.6-mgw
93 make -f Makefile.mingw
94 mkdir miniupnpc
95 cp *.h miniupnpc/
96
97 Bitcoin
98 -------
99 DOS prompt:
100 cd \bitcoin\src
101 mingw32-make bitcoin.exe bitcoind.exe -f makefile.mingw
102 strip bitcoin.exe
103 strip bitcoind.exe