You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
litecoin/build_msvc
Russell Yanofsky 7e2e62cf7c
Add skeleton chain and client classes
6 years ago
..
bench_bitcoin
bitcoin-cli
bitcoin-tx
bitcoind
libbitcoin_cli auto generate MSVC project files 6 years ago
libbitcoin_common auto generate MSVC project files 6 years ago
libbitcoin_crypto auto generate MSVC project files 6 years ago
libbitcoin_qt
libbitcoin_server auto generate MSVC project files 6 years ago
libbitcoin_util auto generate MSVC project files 6 years ago
libbitcoin_wallet auto generate MSVC project files 6 years ago
libbitcoin_zmq auto generate MSVC project files 6 years ago
libbitcoinconsensus scripted-diff: Move util files to separate directory. 6 years ago
libunivalue
msbuild/tasks
test_bitcoin wallet: Add walletdir arg unit tests 6 years ago
test_bitcoin-qt
testconsensus
.gitignore auto generate MSVC project files 6 years ago
README.md auto generate MSVC project files 6 years ago
bitcoin.sln
bitcoin_config.h
common.init.vcxproj
common.vcxproj Make MSVC compiler read the source code using utf-8 6 years ago
msvc-autogen.py Add skeleton chain and client classes 6 years ago

README.md

Building Bitcoin Core with Visual Studio

Introduction

Solution and project files to build the Bitcoin Core applications (except Qt dependent ones) with Visual Studio 2017 can be found in the build_msvc directory.

Building with Visual Studio is an alternative to the Linux based cross-compiler build.

Dependencies

A number of open source libraries are required in order to be able to build Bitcoin.

Options for installing the dependencies in a Visual Studio compatible manner are:

  • Use Microsoft's vcpkg to download the source packages and build locally. This is the recommended approach.
  • Download the source code, build each dependency, add the required include paths, link libraries and binary tools to the Visual Studio project files.
  • Use nuget packages with the understanding that any binary files have been compiled by an untrusted third party.

The external dependencies required for the Visual Studio build are (see the dependencies doc for versions):

  • Berkeley DB,
  • OpenSSL,
  • Boost,
  • libevent,
  • ZeroMQ

Additional dependencies required from the bitcoin-core github repository are:

  • SECP256K1,
  • LevelDB

Building

The instructions below use vcpkg to install the dependencies.

  • Clone and vcpkg from the github repository and install as per the instructions in the main README.md.
  • Install the required packages (replace x64 with x86 as required):
  • Install the required dependencies with vcpkg:
    PS >.\vcpkg install boost:x64-windows-static `
    libevent:x64-windows-static `
    openssl:x64-windows-static `
    zeromq:x64-windows-static `
    berkeleydb:x64-windows-static `
    secp256k1:x64-windows-static `
    leveldb:x64-windows-static
  • Use Python to generate *.vcxproj from Makefile
    PS >python msvc-autogen.py
  • Build in Visual Studio.