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?

  • 1
    0 answers? Posted to the forum - bitcointalk.org/index.php?topic=42411.0 – ripper234 Sep 9 '11 at 6:53
  • Building on 64-bit vs 32-bit should offer no differences in the process. – Matt Corallo Sep 9 '11 at 17:15
  • 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 9 '11 at 22:02
  • @Alex Waters I don't think so: Only 1 active bounty per question at any given time. from here – nmat Sep 10 '11 at 0:58
  • 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 5:48
16
+50

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)

Not the answer you're looking for? Browse other questions tagged or ask your own question.