monitor ThreadSocketHandler and terminate and restart if hung, convert _beginthread...
[novacoin.git] / build-msw.txt
1 Bitcoin v0.2.0 BETA\r
2 \r
3 Copyright (c) 2009 Satoshi Nakamoto\r
4 Distributed under the MIT/X11 software license, see the accompanying\r
5 file license.txt or http://www.opensource.org/licenses/mit-license.php.\r
6 This product includes software developed by the OpenSSL Project for use in\r
7 the OpenSSL Toolkit (http://www.openssl.org/).  This product includes\r
8 cryptographic software written by Eric Young (eay@cryptsoft.com).\r
9 \r
10 \r
11 WINDOWS BUILD NOTES\r
12 \r
13 \r
14 Compilers Supported\r
15 -------------------\r
16 MinGW GCC\r
17 Microsoft Visual C++ 6.0 SP6\r
18 \r
19 \r
20 Dependencies\r
21 ------------\r
22 Libraries you need to obtain separately to build:\r
23 \r
24               default path   download\r
25 wxWidgets      \wxwidgets     http://www.wxwidgets.org/downloads/\r
26                                 or prebuilt: http://wxpack.sourceforge.net\r
27 OpenSSL        \openssl       http://www.openssl.org/source/\r
28 Berkeley DB    \db            http://www.oracle.com/technology/software/products/berkeley-db/index.html\r
29 Boost          \boost         http://www.boost.org/users/download/\r
30 \r
31 Their licenses:\r
32 wxWidgets      LGPL 2.1 with very liberal exceptions\r
33 OpenSSL        Old BSD license with the problematic advertising requirement\r
34 Berkeley DB    New BSD license with additional requirement that linked software must be free open source\r
35 Boost          MIT-like license\r
36 \r
37 Versions used in this release:\r
38 MinGW GCC    3.4.5\r
39 wxWidgets    2.8.9\r
40 OpenSSL      0.9.8k\r
41 Berkeley DB  4.7.25.NC\r
42 Boost        1.34.1\r
43 \r
44 \r
45 Notes\r
46 -----\r
47 The UI layout is edited with wxFormBuilder.  Open the project file\r
48 uiproject.fbp.  It generates uibase.cpp and uibase.h, which define base\r
49 classes that do the rote work of constructing all the UI elements.\r
50 \r
51 The release is built with GCC and then "strip bitcoin.exe" to strip the debug\r
52 symbols, which reduces the executable size by about 90%.\r
53 \r
54 \r
55 OpenSSL\r
56 -------\r
57 Bitcoin does not use any encryption.  If you want to do a no-everything\r
58 build of OpenSSL to exclude encryption routines, a few patches are required.\r
59 (instructions for OpenSSL v0.9.8k)\r
60 \r
61 Edit engines\e_gmp.c and engines\e_capi.c and add this #ifndef around\r
62 the openssl/rsa.h include:\r
63   #ifndef OPENSSL_NO_RSA\r
64   #include <openssl/rsa.h>\r
65   #endif\r
66 \r
67 Edit ms\mingw32.bat and replace the Configure line's parameters with this\r
68 no-everything list.  You have to put this in the batch file because batch\r
69 files can't take more than nine command line parameters.\r
70   perl Configure mingw threads no-rc2 no-rc4 no-rc5 no-idea no-des no-bf no-cast no-aes no-camellia no-seed no-rsa no-dh\r
71 \r
72 Also REM out the following line in ms\mingw32.bat after the mingw32-make\r
73 line.  The build fails after it's already finished building libeay32, which\r
74 is all we care about, but the failure aborts the script before it runs\r
75 dllwrap to generate libeay32.dll.\r
76   REM  if errorlevel 1 goto end\r
77 \r
78 Build\r
79   cd \openssl\r
80   ms\mingw32.bat\r
81 \r
82 If you want to use it with MSVC, generate the .lib file\r
83   lib /machine:i386 /def:ms\libeay32.def /out:out\libeay32.lib\r
84 \r
85 \r
86 Berkeley DB\r
87 -----------\r
88 Using MinGW and MSYS:\r
89 cd \db\build_unix\r
90 sh ../dist/configure --enable-mingw --enable-cxx\r
91 make\r