Better wording for transaction fee notification messages
[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.0c-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.0c
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.0c-mgw
70 ./config
71 make
72
73 perl util/mkdef.pl 32 libeay enable-static-engine > libeay32.def
74 dllwrap --dllname libeay32.dll --output-lib libeay32.a --def libeay32.def libcrypto.a -lws2_32 -lgdi32
75
76 after that openssl libeay is in main source dir (openssl-1.0.0c-mgw)
77
78 Berkeley DB
79 -----------
80 MSYS shell:
81 cd /c/db-4.7.25.NC-mgw/build_unix
82 sh ../dist/configure --enable-mingw --enable-cxx
83 make
84
85
86 Boost
87 -----
88 DOS prompt:
89 downloaded boost jam 3.1.18
90 cd \boost-1.43.0-mgw
91 bjam toolset=gcc --build-type=complete stage
92
93 Note:
94 building with boost 1.45.0 failed because of boost ticket 4614, 4258
95 builds fine with boost 1.43.0
96
97 MiniUPnPc
98 ---------
99 Building miniupnpc failed on Windows Server 2003, thus it is expected that a binary copy will be used.
100 See http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=642
101 UPnP support is optional, make with USE_UPNP= to disable it.
102
103 Get upnpc-exe-win32-20110215.zip and unzip it to \upnpc-exe-win32-20110215
104 Get miniupnpc-1.5.20110215.tar.gz and copy *.h to \upnpc-exe-win32-20110215\miniupnpc
105
106 Bitcoin
107 -------
108 DOS prompt:
109 cd \bitcoin\src
110 mingw32-make bitcoin.exe bitcoind.exe -f makefile.mingw
111 strip bitcoin.exe
112 strip bitcoind.exe