Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
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
show 1 more comment

1 Answer

up vote 12 down vote accepted

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



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:


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


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):


cd /c/openssl-1.0.0c-mgw
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


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)

share|improve this answer
As a note, I had to run the bootstrap.bat file before running the bjam step. –  xanatos Jun 28 '12 at 8:38
If the first answer did not work for you, there is another discussion on the forums that worked for me. :) –  Qwerty Jan 5 at 4:46
In case you are going nuts trying to find mingw-get-inst-20110316.exe... The link above is broken: MinGW Automated Installer from sourceforge.net/projects/mingw/files/…. Install with the C++ and MSYS options checked. The new link is: sourceforge.net/projects/mingw/files/OldFiles/mingw-get-inst/… –  user15001 Apr 2 at 15:48
add comment

protected by Community Apr 2 at 23:29

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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