31

I am trying to build the current Bitcoin source in Windows 7x64 - Does anyone know of an idiot-proof tutorial? Some of the steps in the included doc give me errors.

When I try to tar openssl with msys, I get symlink errors.

Is there a better walk-through?

Murch
  • 71,155
  • 33
  • 180
  • 600
Alex Waters
  • 3,171
  • 2
  • 24
  • 39
  • 1
    0 answers? Posted to the forum - https://bitcointalk.org/index.php?topic=42411.0 – ripper234 Sep 09 '11 at 06:53
  • I was kind of hoping someone could post the steps here instead of linking to another site. It wouldn't make sense to grant a bounty for some links. Also, thanks David for setting up the bounty - can I add to it? – Alex Waters Sep 09 '11 at 22:02
  • @Alex Waters I don't think so: `Only 1 active bounty per question at any given time.` from [here](http://bitcoin.stackexchange.com/faq#bounty) – nmat Sep 10 '11 at 00:58
  • "some of the steps give me errors" is not specific enough. You should provide the compiler output for people to give you practical advice as to what you do wrong. – wumpus Sep 11 '11 at 08:02
  • Building on 64-bit vs 32-bit should offer no differences in the process. – Matt Corallo Sep 09 '11 at 17:15
  • Might also help us to help you if you actually give the error messages rather then just saying 'when I try to tar openssl I get symlink errors' what is the exact command for tar with arguments? What are the exact errors? What directory are you in when you execute the tar command? I built it on Windows 7 64 bit using the mingw tools from those instructions just fine after editing the paths to match my setup for what it is worth. – twobits Sep 11 '11 at 05:48

1 Answers1

16

Take a look at Windows Build Instructions By Matt Corallo, it's outdated, but has some additional comments to the included doc.

Install:

Download:

Note that the reason for using the binary miniupnpc release is that I was unable to get it to build on my system.

Add C:\MinGW\bin to your PATH environment variable (Google is your friend as it depends on your Windows Version).

In the DOS Shell:

wxWidgets:

cd \wxWidgets-2.9.1-mgw\build\msw
mingw32-make -f makefile.gcc

Boost:

cd \boost-1.43.0-mgw
\bjam\bjam.exe toolset=gcc --build-type=complete stage

In the msys Shell (MinGW shell in your start folder or C:\MinGW\msys\1.0\msys.bat):

OpenSSL:

cd /c/openssl-1.0.0c-mgw
./config
make
perl util/mkdef.pl 32 libeay enable-static-engine > libeay32.def
dllwrap --dllname libeay32.dll --output-lib libeay32.a --def libeay32.def libcrypto.a -lws2_32 -lgdi32 

Copy the libeay32.dll file to the folder where you are building/running bitcoin.

Berkeley DB:

cd /c/db-4.7.25.NC-mgw/build_unix
sh ../dist/configure --enable-mingw --enable-cxx
make

Bitcoin

If you wish to use git to pull keep a local repository, you'll have to download msgit from http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.4-preview20110204.exe&can=2&q= . Otherwise, you can download the latest zip of bitcoin from https://github.com/bitcoin/bitcoin/zipball/master In the msys shell, cd to the unzipped location and

make -f makefile.mingw

Run with ./bitcoin.exe (make sure you have the libeay32.dll in bitcoin folder)

Serith
  • 5,390
  • 23
  • 24
  • As a note, I had to run the bootstrap.bat file before running the bjam step. – xanatos Jun 28 '12 at 08:38
  • If the first answer did not work for you, there is [another discussion](https://bitcointalk.org/index.php?topic=149479.0) on the forums that worked for me. :) – Noah Jan 05 '14 at 04:46
  • In case you are going nuts trying to find mingw-get-inst-20110316.exe... The link above is broken: MinGW Automated Installer from http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110316/mingw-get-inst-20110316.exe/download. Install with the C++ and MSYS options checked. The new link is: http://sourceforge.net/projects/mingw/files/OldFiles/mingw-get-inst/mingw-get-inst-20110316/ –  Apr 02 '14 at 15:48