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
Chun Kuan Lee 8a1f0a38d4
scripted-diff: Remove NDEBUG pre-define
6 years ago
..
bench_bitcoin msvc: build leveldb locally 6 years ago
bitcoin-cli scripted-diff: Remove NDEBUG pre-define 6 years ago
bitcoin-tx scripted-diff: Remove NDEBUG pre-define 6 years ago
bitcoin-wallet scripted-diff: Remove NDEBUG pre-define 6 years ago
bitcoind scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_cli scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_common scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_crypto scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_qt scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_server msvc: build leveldb locally 6 years ago
libbitcoin_util scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_wallet scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_wallet_tool scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoin_zmq scripted-diff: Remove NDEBUG pre-define 6 years ago
libbitcoinconsensus scripted-diff: Remove NDEBUG pre-define 6 years ago
libleveldb scripted-diff: Remove NDEBUG pre-define 6 years ago
libsecp256k1 scripted-diff: Remove NDEBUG pre-define 6 years ago
libunivalue scripted-diff: Remove NDEBUG pre-define 6 years ago
msbuild/tasks Visual Studio build configuration for Bitcoin Core 6 years ago
test_bitcoin msvc: add rapid check property tests 6 years ago
test_bitcoin-qt scripted-diff: Remove NDEBUG pre-define 6 years ago
testconsensus msvc: build secp256k1 locally 6 years ago
.gitignore auto generate MSVC project files 6 years ago
README.md Modify build instructions to work with Command Prompt as well as 6 years ago
bitcoin.sln msvc: build leveldb locally 6 years ago
bitcoin_config.h Visual Studio build configuration for Bitcoin Core 6 years ago
common.init.vcxproj Visual Studio build configuration for Bitcoin Core 6 years ago
common.vcxproj Merge #14922: windows: Set _WIN32_WINNT to 0x0601 (Windows 7) 6 years ago
libsecp256k1_config.h msvc: build secp256k1 locally 6 years ago
msvc-autogen.py [tools] Add wallet inspection and modification tool 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 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):
    PS >.\vcpkg install --triplet x64-windows-static boost-filesystem boost-signals2 boost-test libevent openssl zeromq berkeleydb secp256k1 leveldb
  • Use Python to generate *.vcxproj from Makefile
    PS >python msvc-autogen.py
  • Build in Visual Studio.