Research
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateeCash.com
Bitcoin r202 (last Satoshi commit) · 2010-12-15

build-msw.txt

109 lines · plain text · GitHub · MIT license (license.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)15http://tdm-gcc.tdragon.net/ has an easy installer.  Go back a few versions16for a little older gcc like gcc 4.4.?.1718MSVC 8.0 (2005) SP1 has been tested.  Note: MSVC 7.0 and up have a habit of19linking to runtime DLLs that are not installed on XP by default.202122Dependencies23------------24Libraries you need to download separately and build:2526             default path  download27wxWidgets-2.9  \wxwidgets   http://www.wxwidgets.org/downloads/28OpenSSL        \openssl     http://www.openssl.org/source/29Berkeley DB    \db          http://www.oracle.com/technology/software/products/berkeley-db/index.html30Boost          \boost       http://www.boost.org/users/download/3132Their licenses:33wxWidgets      LGPL 2.1 with very liberal exceptions34OpenSSL        Old BSD license with the problematic advertising requirement35Berkeley DB    New BSD license with additional requirement that linked software must be free open source36Boost          MIT-like license3738Versions used in this release:39MinGW GCC    3.4.540wxWidgets    2.9.041OpenSSL      0.9.8k42Berkeley DB  4.7.25.NC43Boost        1.42.1444546Notes47-----48The UI layout is edited with wxFormBuilder.  The project file is49uiproject.fbp.  It generates uibase.cpp and uibase.h, which define base50classes that do the rote work of constructing all the UI elements.5152The release is built with GCC and then "strip bitcoin.exe" to strip the debug53symbols, which reduces the executable size by about 90%.545556wxWidgets57---------58cd \wxwidgets\build\msw59make -f makefile.gcc60 or61nmake -f makefile.vc626364OpenSSL65-------66If you want to exclude unused optional algorithms, a few patches are required.67(instructions for OpenSSL v0.9.8k)6869Edit engines\e_gmp.c and engines\e_capi.c and add this #ifndef around70the openssl/rsa.h include:71  #ifndef OPENSSL_NO_RSA72  #include <openssl/rsa.h>73  #endif7475Edit ms\mingw32.bat and replace the Configure line's parameters with this76no-everything list.  You have to put this in the batch file because batch77files can't take more than nine command line parameters.78  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-dh7980Also REM out the following line in ms\mingw32.bat after the mingw32-make81line.  The build fails after it's already finished building libeay32, which82is all we care about, but the failure aborts the script before it runs83dllwrap to generate libeay32.dll.84  REM  if errorlevel 1 goto end8586Build87  cd \openssl88  ms\mingw32.bat8990If you're using MSVC, generate the .lib file91  lib /machine:i386 /def:ms\libeay32.def /out:out\libeay32.lib929394Berkeley DB95-----------96Using MinGW and MSYS:97cd \db\build_unix98sh ../dist/configure --enable-mingw --enable-cxx99make100101102Boost103-----104download bjam.exe from105http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941106cd \boost107bjam toolset=gcc --build-type=complete stage108 or109bjam 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.

0:000:00