cryptobi / toolbox

Crypto.BI Toolbox is a tool suite for cryptocurrency enthusiasts.
https://crypto.bi
MIT License
29 stars 12 forks source link

Problem with install instructions on linux debian #5

Open 128bits opened 3 years ago

128bits commented 3 years ago

Hi! I'm having trouble compiling the project using debian 11 bullseye.

I installed all dependencies, environment variables and prepared the build with the cmake command but didn't work because the build.ninja file is not generated.

$ cmake -DCMAKE_BUILD_TYPE=Debug \ -DFMT_DIR=$FMT_DIR \ -DSPDLOG_DIR=$SPDLOG_DIR \ -DMYSQLCONN_DIR=$MYSQLCONN_DIR \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DBOOST_SRC_DIR=$BOOST_SRC_DIR \ -DBITCOIN_SRC_DIR=$BITCOIN_SRC_DIR \ -DCB_BUILD_EXAMPLES=1 \ -DBUILD_TESTING=1 \ ..

-- Using BITCOIN_SRC_DIR = /apps/btc/bitcoin -- Using BOOST_SRC_DIR = /apps/btc/boost_1_66_0 -- Using MYSQLCONN_DIR = /apps/btc/mysql-connector-c++ -- Using SPDLOG_DIR = /apps/btc/spdlog -- -- ** -- Starting Crypto.BI Toolbox Build/Configuration -- ** -- -- Using PROJECT_SOURCE_DIR = /home/user/apps/btc/toolbox -- Configuring done -- Generating done -- Build files have been written to: /home/user/apps/btc/toolbox/build

$ ninja -v ninja: error: loading 'build.ninja': No such file or directory

$ cmake -version cmake version 3.18.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).

128bits commented 3 years ago

I solved the problem adding the "-G Ninja" parameter to generate the build.ninja file but I'm getting multiple errors for missing imports when compiling... I will try to fix it in the next few days.

$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug \ -DFMT_DIR=$FMT_DIR \ -DSPDLOG_DIR=$SPDLOG_DIR \ -DMYSQLCONN_DIR=$MYSQLCONN_DIR \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DBOOST_SRC_DIR=$BOOST_SRC_DIR \ -DBITCOIN_SRC_DIR=$BITCOIN_SRC_DIR \ -DCB_BUILD_EXAMPLES=1 \ -DBUILD_TESTING=1 \ ..