-
Notifications
You must be signed in to change notification settings - Fork 13
BaerChain Compile Guide
weidong edited this page Apr 9, 2020
·
3 revisions
-
- BaerChain only provides source code compilation for the time being, and gets the executable file "brcd" we need
- BaerChain requires "C++14" support and requires "g++5.0" or higher.
- BaerChain requires CMake support and requires cmake3.10 or above.
- Operating environment version ubuntu18.04, linux version 3.10 or above.
2. Dependency library required to install cpp-lsac Back Dir
apt-get install -y cmake git libboost1.65-all-dev libssl-dev libsnappy-dev libleveldb-dev libgmp-dev libscrypt-dev libjsoncpp-dev libargtable2-dev libcurl4-openssl-dev libhiredis-dev doxygen libmicrohttpd-dev libgflags-dev
- Note: Jsonrpccpp requires version 1.1 or higher, and can be compiled according to the first-line process
git clone https://github.com/cinemast/libjson-rpc-cpp
cd libjson-rpc-cpp
git checkout v1.1.1
mkdir build
cd build
cmake .. && make
sudo make install
sudo ldconfig
4. Rocksdb download and install Back Dir
- Rocksdb compilation process
git clone https://github.com/facebook/rocksdb.git
cd rocksdb
git checkout 6.1.fb
mkdir build
cd build
cmake ..
make
cp librocksdb.* /usr/local/lib/
cd ..
cp -r include/rocksdb /usr/local/include/
- After the above work is ready, you can download the source code for editing. The compilation process of the brcd execution file is as follows
git clone https://github.com/BaerChain/cpp-lsac.git
cd cpp-lsac
mkdir build
cd build
cmake ..
make
- Remarks: The compiled executable program is in the "cpp-lsac/build/brcd" directory