dogecoin/build_msvc
MarcoFalke 252fd15add
Merge #13926: [Tools] bitcoin-wallet - a tool for creating and managing wallets offline
3c3e31c3a4 [tests] Add wallet-tool test (João Barbosa)
49d2374acf [tools] Add wallet inspection and modification tool (Jonas Schnelli)

Pull request description:

  Adds an offline tool `bitcoin-wallet-tool` for wallet creation and maintenance.

  Currently this tool can create a new wallet file, display information on an existing wallet, and run the salvage and zapwallettxes maintenance tasks on an existing wallet. It can later be extended to support other common wallet maintenance tasks.

  Doing wallet maintenance tasks in an offline tool makes much more sense (and is potentially safer) than having to spin up a full node.

Tree-SHA512: 75a28b8a58858d9d76c7532db40eacdefc5714ea5aab536fb1dc9756e2f7d750d69d68d59c50a68e633ce38fb5b8c3e3d4880db30fe01561e07ce58d42bceb2b
2019-01-31 11:07:51 -05:00
..
bench_bitcoin Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
bitcoin-cli Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
bitcoin-tx Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
bitcoin-wallet [tools] Add wallet inspection and modification tool 2019-01-30 16:26:52 -05:00
bitcoind Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
libbitcoin_cli auto generate MSVC project files 2018-08-26 23:54:26 +08:00
libbitcoin_common auto generate MSVC project files 2018-08-26 23:54:26 +08:00
libbitcoin_crypto auto generate MSVC project files 2018-08-26 23:54:26 +08:00
libbitcoin_qt Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
libbitcoin_server Fix the build problem in libbitcoin_server 2019-01-05 14:16:13 +02:00
libbitcoin_util auto generate MSVC project files 2018-08-26 23:54:26 +08:00
libbitcoin_wallet auto generate MSVC project files 2018-08-26 23:54:26 +08:00
libbitcoin_wallet_tool [tools] Add wallet inspection and modification tool 2019-01-30 16:26:52 -05:00
libbitcoin_zmq auto generate MSVC project files 2018-08-26 23:54:26 +08:00
libbitcoinconsensus scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
libunivalue Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
msbuild/tasks Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
test_bitcoin wallet: Add walletdir arg unit tests 2018-09-12 21:05:53 -04:00
test_bitcoin-qt Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
testconsensus Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
.gitignore auto generate MSVC project files 2018-08-26 23:54:26 +08:00
bitcoin.sln [tools] Add wallet inspection and modification tool 2019-01-30 16:26:52 -05:00
bitcoin_config.h Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
common.init.vcxproj Visual Studio build configuration for Bitcoin Core 2018-08-10 09:19:00 +02:00
common.vcxproj Fix remaining compiler warnings (MSVC). Move disabling of specific warnings from /nowarn to project file. 2019-01-15 20:15:26 +01:00
msvc-autogen.py [tools] Add wallet inspection and modification tool 2019-01-30 16:26:52 -05:00
README.md Modify build instructions to work with Command Prompt as well as 2018-12-18 05:23:38 +00:00

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.