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
Aaron Clauson d53d591230
Added the bench_bitcoin project to the list automatically produced by the msvc-autogen python script.
5 years ago
..
bench_bitcoin Added the bench_bitcoin project to the list automatically produced by the msvc-autogen python script. 5 years ago
bitcoin-cli [MSVC] Copy build output to src/ automatically after build 5 years ago
bitcoin-tx [MSVC] Copy build output to src/ automatically after build 5 years ago
bitcoin-wallet [MSVC] Copy build output to src/ automatically after build 5 years ago
bitcoind [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_cli [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_common [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_crypto [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_qt qt: Remove menu icons 5 years ago
libbitcoin_server [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_util [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_wallet [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_wallet_tool [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoin_zmq [MSVC] Copy build output to src/ automatically after build 5 years ago
libbitcoinconsensus [MSVC] Copy build output to src/ automatically after build 5 years ago
libleveldb [MSVC] Copy build output to src/ automatically after build 5 years ago
libsecp256k1 [MSVC] Copy build output to src/ automatically after build 5 years ago
libunivalue [MSVC] Copy build output to src/ automatically after build 5 years ago
msbuild/tasks [MSVC]: Create the config.ini as part of bitcoind build 5 years ago
test_bitcoin [MSVC] Copy build output to src/ automatically after build 5 years ago
test_bitcoin-qt scripted-diff: Remove NDEBUG pre-define 6 years ago
testconsensus [MSVC] Copy build output to src/ automatically after build 5 years ago
.gitignore Cleaned up and consolidated msvc build files to allow faster builds and easier migration to vs2019. 5 years ago
README.md Updated python command in readme so it will work on systems that have both python2 and 3 installed. 5 years ago
bitcoin.sln Cleaned up and consolidated msvc build files to allow faster builds and easier migration to vs2019. 5 years ago
bitcoin_config.h [build] MSVC: set HAVE_SYSTEM for desktop apps 6 years ago
common.init.vcxproj Adds an option to msbuild common configuration to ignore linker warning 4221. This warning is for object files that do not include any symbols. The warning is harmless and occurs due to some classes that are *nix only having no source to compile for an msvc build. 5 years ago
common.vcxproj [MSVC] Copy build output to src/ automatically after build 5 years ago
libsecp256k1_config.h msvc: build secp256k1 locally 6 years ago
msvc-autogen.py Added the bench_bitcoin project to the list automatically produced by the msvc-autogen python script. 5 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 dependencies.md for more info):

  • Berkeley DB
  • OpenSSL
  • Boost
  • libevent
  • ZeroMQ
  • RapidCheck

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

  • libsecp256k1
  • 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 rapidcheck
  • Use Python to generate *.vcxproj from Makefile
    PS >py -3 msvc-autogen.py
  • Build in Visual Studio.