RadiantBlockchain / radiant-node

Radiant Blockchain Node - SHA512/256 Proof-of-Work
MIT License
20 stars 32 forks source link

Update for ZMQ compilation #22

Closed Antares-RXD closed 3 months ago

Antares-RXD commented 3 months ago

Update with new depends

All names have been changed in the code from DBUILD_BITCOIN_ZMQ to DBUILD_RADIANT_ZMQ to unify the compilation configuration.

typo with ZMQ build name

The dependencies folder has been changed to BitcoinCash dependencies to avoid errors in the compilation.

Origin: https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node/-/tree/master/depends?ref_type=heads

Commit used: 71ed5e6108a57371955359106edd17ee74ddc2f3

Compiling with ZMQ

git clone https://github.com/radiantblockchain/radiant-node.git

cd radiant-node

make -j4 -C depends HOST=x86_64-linux-gnu NO_QT=1 NO_UPNP=1

mkdir build

cd build

cmake -GNinja .. \
      -DCLIENT_VERSION_IS_RELEASE=ON \
      -DCMAKE_CXX_COMPILER="clang++" \
      -DCMAKE_C_COMPILER="clang" \
      -DENABLE_QRCODE=OFF \
      -DENABLE_CLANG_TIDY=OFF \
      -DENABLE_REDUCE_EXPORTS=ON \
      -DENABLE_STATIC_LIBSTDCXX=ON \
      -DENABLE_GLIBC_BACK_COMPAT=ON \
      -DENABLE_UPNP=OFF \
      -DBUILD_RADIANT_QT=OFF \
      -DBUILD_RADIANT_ZMQ=ON \ 
      -DBUILD_RADIANT_WALLET=OFF \
      -DBUILD_RADIANT_SEEDER=OFF \
      -DENABLE_MAN=OFF \
      -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux64.cmake 

ninja