Bitcoin, Bitcoin Cash and Litecoin full node C-API library
master(linux/osx) | dev(linux/osx) | master(windows) | dev(windows) |
---|---|---|---|
In version2, the bitcoin-node
console app is for demonstration purposes only. See bitprim-server for release quality full node functionality.
Conan is a Python package for dependency management; it only requires Python and Pip. With Conan, install can be performed on any OS. If there are no prebuilt binaries for a given OS-compiler-arch combination, Conan will build from source.
pip install conan
conan remote add bitprim https://api.bintray.com/conan/bitprim/bitprim
conan install bitprim-node-cint/0.1@bitprim/stable
The last step will install binaries and headers in Conan's cache, a directory outside the usual system paths. This will avoid conflict with system packages such as boost. Also, notice it references the stable version 0.1. To see which versions are available, please check Bintray.
Make sure you have installed bitprim-core, bitprim-database, bitprim-blockchain, bitprim-consensus (optional), bitprim-network and bitprim-node beforehand according to their build instructions.
$ git clone https://github.com/bitprim/bitprim-node-cint.git
$ cd bitprim-node-cint
$ mkdir build
$ cd build
$ cmake .. -DENABLE_TESTS=OFF -DWITH_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-std=c++11"
$ make -j2
$ sudo make install
bitprim-node-cint is now installed in /usr/local/
.
This project, unlike secp256k1, has external dependencies such as boost. The easiest way to build them is to use Conan from the CMake script, which will install boost and other libraries in non-system directories.
From a Visual Studio Developer Command Prompt:
$ pip install conan
$ git clone https://github.com/bitprim/bitprim-node-cint.git
$ cd bitprim-node-cint
$ mkdir build
$ cd build
$ conan install ..
$ cmake .. -DUSE_CONAN=ON -DNO_CONAN_AT_ALL=OFF
$ msbuild ALL_BUILD.vcxproj