dash: Build 0.13 failed - chiabls/bls.hpp

build on ubuntu fails: ( in docker, standard libdb4.8 image which fits most coins )

git clone https://github.com/dashpay/dash
cd dash
apt-get -y install curl cmake
cd depends
make -j8
cd ..
./autogen.sh
./configure --with-gui=no --prefix=$(pwd)/depends/ax86_64-pc-linux-gnu
make -j8
  CXX      libdash_server_a-addrdb.o
gcc gen_context.o -o gen_context
./gen_context
  CC       src/libsecp256k1_la-secp256k1.lo
In file included from evo/deterministicmns.h:9:0,
                 from activemasternode.h:14,
                 from activemasternode.cpp:5:
./bls/bls.h:14:27: fatal error: chiabls/bls.hpp: No such file or directory
compilation terminated.
Makefile:6435: recipe for target 'libdash_server_a-activemasternode.o' failed
make[2]: *** [libdash_server_a-activemasternode.o] Error 1

followed this documentation https://github.com/dashpay/dash/blob/develop/doc/build-generic.md

might be related to: #2562 #2354

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 15

Most upvoted comments

I also have a problem with missing this library and how to fix it: Download: https://github.com/codablock/bls-signatures/archive/v20181101.zip unzip and cmd:

git submodule update --init --recursive mkdir build cd build cmake …/ cmake --build . – -j 6 sudo make install

Make sure that you have all build dependencies installed https://github.com/dashpay/dash/blob/develop/doc/build-unix.md#base-build-dependencies and that make in depends actually succeeds.

Full script in your case would be smth like this (assuming you are running under sudo/root):

apt-get update
apt-get install -y curl build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake
git clone https://github.com/dashpay/dash
cd dash/depends
make -j8 NO_QT=1
cd ..
./autogen.sh
./configure --prefix=$(pwd)/depends/x86_64-pc-linux-gnu
make -j8

Thanks @nasa8x . These libraries should be included in the source code. It is a must!

@UdjinM6 yes i have all those dependencies installed and they succeed. @nasa8x yes thank you, that helped.

so here is my working script:

sudo -s
apt-get update
apt-get install -y curl build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake
wget https://github.com/codablock/bls-signatures/archive/v20181101.zip
unzip v20181101.zip
cd bls-signatures-20181101
cmake .
make install
cd ..
git clone https://github.com/dashpay/dash
cd dash/depends
make -j8
cd ..
./autogen.sh
./configure --with-gui=no --prefix=$(pwd)/depends/x86_64-pc-linux-gnu
make -j8