Bitcoin v0.3.0 · 2010-07-06
build-msw.txt
1Copyright (c) 2009-2010 Satoshi Nakamoto2Distributed under the MIT/X11 software license, see the accompanying3file license.txt or http://www.opensource.org/licenses/mit-license.php.4This product includes software developed by the OpenSSL Project for use in5the OpenSSL Toolkit (http://www.openssl.org/). This product includes6cryptographic software written by Eric Young (eay@cryptsoft.com).789WINDOWS BUILD NOTES10===================1112Compilers Supported13-------------------14MinGW GCC (recommended)1516MSVC 6.0 SP6: You'll need Boost version 1.34 because they dropped support17for MSVC 6.0 after that. However, they didn't add Asio until 1.35.18You should still be able to build with MSVC 6.0 by adding Asio to 1.34 by19unpacking boost_asio_*.zip into the boost directory:20http://sourceforge.net/projects/asio/files/asio2122MSVC 8.0 (2005) SP1 has been tested. Note: MSVC 7.0 and up have a habit of23linking to runtime DLLs that are not installed on XP by default.242526Dependencies27------------28Libraries you need to download separately and build:2930 default path download31wxWidgets-2.9 \wxwidgets http://www.wxwidgets.org/downloads/32OpenSSL \openssl http://www.openssl.org/source/33Berkeley DB \db http://www.oracle.com/technology/software/products/berkeley-db/index.html34Boost \boost http://www.boost.org/users/download/3536Their licenses:37wxWidgets LGPL 2.1 with very liberal exceptions38OpenSSL Old BSD license with the problematic advertising requirement39Berkeley DB New BSD license with additional requirement that linked software must be free open source40Boost MIT-like license4142Versions used in this release:43MinGW GCC 3.4.544wxWidgets 2.9.045OpenSSL 0.9.8k46Berkeley DB 4.7.25.NC47Boost 1.42.1484950Notes51-----52The UI layout is edited with wxFormBuilder. The project file is53uiproject.fbp. It generates uibase.cpp and uibase.h, which define base54classes that do the rote work of constructing all the UI elements.5556The release is built with GCC and then "strip bitcoin.exe" to strip the debug57symbols, which reduces the executable size by about 90%.585960wxWidgets61---------62cd \wxwidgets\build\msw63make -f makefile.gcc64 or65nmake -f makefile.vc666768OpenSSL69-------70Bitcoin does not use any encryption. If you want to do a no-everything71build of OpenSSL to exclude encryption routines, a few patches are required.72(instructions for OpenSSL v0.9.8k)7374Edit engines\e_gmp.c and engines\e_capi.c and add this #ifndef around75the openssl/rsa.h include:76 #ifndef OPENSSL_NO_RSA77 #include <openssl/rsa.h>78 #endif7980Edit ms\mingw32.bat and replace the Configure line's parameters with this81no-everything list. You have to put this in the batch file because batch82files can't take more than nine command line parameters.83 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-dh8485Also REM out the following line in ms\mingw32.bat after the mingw32-make86line. The build fails after it's already finished building libeay32, which87is all we care about, but the failure aborts the script before it runs88dllwrap to generate libeay32.dll.89 REM if errorlevel 1 goto end9091Build92 cd \openssl93 ms\mingw32.bat9495If you want to use it with MSVC, generate the .lib file96 lib /machine:i386 /def:ms\libeay32.def /out:out\libeay32.lib979899Berkeley DB100-----------101Using MinGW and MSYS:102cd \db\build_unix103sh ../dist/configure --enable-mingw --enable-cxx104make105106107Boost108-----109download bjam.exe from110http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941111cd \boost112bjam toolset=gcc --build-type=complete stage113 or114bjam toolset=msvc --build-type=complete stage
Click a line number to link to it; use #L10-L20 for a range. "=" next to a version means the file is identical there.
