Building from sources problem 0.13.0.0-rc9

sae_uru

New Member
Jul 4, 2018
8
1
3
36
Hello all! May be someone can explain me, how I can build dashd from sources? I've spend 2 days for searching any solutions, bot steel no result.
I trying to make dashd at Gentoo system, agreed generic build notes, I trying to make dashd, I have done the following:

# wget https://github.com/dashpay/dash/releases/download/v0.13.0.0-rc9/dashcore-0.13.0.0-rc9.tar.gz
# tar -xvf dashcore-0.13.0.0-rc9.tar.gz
# cd dashcore-0.13.0
# mkdir temp
# cd temp
# git clone https://github.com/dashpay/dash.git
# cp -pr dashcore/depends ../dashcore-0.13.0
# cd depends
# make -j 8
(here I waiting for building depends, successful result is:

copying packages: native_protobuf boost openssl libevent zeromq qrencode protobuf zlib qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans bdb miniupnpc
to: /home/dash/build/dashcore-0.13.0/depends/x86_64-pc-linux-gnu)

# cd ..
# ./autogen.sh (run without any errors)
# ./configure --prefix=/home/dash/build/dashcore-0.13.0/depends/x86_64-pc-linux-gnu --without-miniupnpc --disable-upnp-default --without-gui
result is (
Options used to compile and link:
with wallet = yes
with gui / qt = no
with zmq = yes
with test = yes
with bench = yes
with upnp = no
debug enabled = no
werror = no

target os = linux
build os =

CC = gcc -m64
CFLAGS = -pipe -O2
CPPFLAGS = -I/home/dash/build/dashcore-0.13.0/depends/x86_64-pc-linux-gnu/share/../include/ -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS
CXX = g++ -m64 -std=c++14
CXXFLAGS = -pipe -O2
LDFLAGS = -L/home/dash/build/dashcore-0.13.0/depends/x86_64-pc-linux-gnu/share/../lib

# make
Making all in src
make[1]: Entering directory '/home/dash/build/dashcore-0.13.0/src'
make[2]: Entering directory '/home/dash/build/dashcore-0.13.0/src'
CXX crypto/libdashconsensus_la-aes.lo
CXX crypto/libdashconsensus_la-hmac_sha256.lo
CXX crypto/libdashconsensus_la-hmac_sha512.lo
CXX crypto/libdashconsensus_la-ripemd160.lo
CC crypto/libdashconsensus_la-aes_helper.lo
CXX crypto/libdashconsensus_la-sha1.lo
CXX crypto/libdashconsensus_la-sha256.lo
CXX crypto/libdashconsensus_la-sha512.lo
CC crypto/libdashconsensus_la-blake.lo
CC crypto/libdashconsensus_la-bmw.lo
CC crypto/libdashconsensus_la-cubehash.lo
CC crypto/libdashconsensus_la-echo.lo
CC crypto/libdashconsensus_la-groestl.lo
CC crypto/libdashconsensus_la-jh.lo
CC crypto/libdashconsensus_la-keccak.lo
CC crypto/libdashconsensus_la-luffa.lo
CC crypto/libdashconsensus_la-shavite.lo
CC crypto/libdashconsensus_la-simd.lo
CC crypto/libdashconsensus_la-skein.lo
CXX libdashconsensus_la-arith_uint256.lo
CXX bls/libdashconsensus_la-bls.lo
In file included from bls/bls.cpp:5:0:
bls/bls.h:14:10: fatal error: chiabls/bls.hpp: No such file or directory
#include <chiabls/bls.hpp>

^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:9318: bls/libdashconsensus_la-bls.lo] Error 1
make[2]: Leaving directory '/home/dash/build/dashcore-0.13.0/src'
make[1]: *** [Makefile:10948: all-recursive] Error 1
make[1]: Leaving directory '/home/dash/build/dashcore-0.13.0/src'
make: *** [Makefile:687: all-recursive] Error 1


so I didn't do what libraries I didn't add, the build doesn't work, please help!!!
Thanks in advance!
 

sae_uru

New Member
Jul 4, 2018
8
1
3
36
file bls.h is present
[email protected] ~/build/dashcore-0.13.0/src/bls $ ls -al
total 108
drwxr-xr-x 4 dash dash 4096 Dec 24 18:51 .
drwxr-xr-x 25 dash dash 12288 Dec 24 18:51 ..
-rw-r--r-- 1 dash dash 10915 Dec 17 06:06 bls.cpp
-rw-r--r-- 1 dash dash 8401 Dec 17 06:06 bls.h
-rw-r--r-- 1 dash dash 3755 Dec 17 06:06 bls_ies.cpp
-rw-r--r-- 1 dash dash 4336 Dec 17 06:06 bls_ies.h
-rw-r--r-- 1 dash dash 33922 Dec 17 06:06 bls_worker.cpp
-rw-r--r-- 1 dash dash 10680 Dec 17 06:06 bls_worker.h
drwxr-xr-x 2 dash dash 4096 Dec 24 18:51 .deps
-rw-r--r-- 1 dash dash 0 Dec 24 18:51 .dirstamp
drwxr-xr-x 2 dash dash 4096 Dec 24 18:51 .libs
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
716
415
133
Hi there!

You are copying the master branch of the depends folder after cloning from git. This contains the dependencies for 0.12.3, not 0.13.0. You will need to step into the folder and change the branch after your "git clone" command, as follows:

cd dash
git checkout develop
cd ..

Then continue with your "cp ..." command. You'll know it worked if you see "chia_bls" in the output of "copying packages:" after make finishes processing the depends folder. Alternatively, you could just clone the repository and build from there, which would save you downloading the source tarball (which doesn't contain the depends folder, causing this confusion in the first place ;). Hope this makes sense, let me know if you get it working!
 

sae_uru

New Member
Jul 4, 2018
8
1
3
36
Hi there!

You are copying the master branch of the depends folder after cloning from git. This contains the dependencies for 0.12.3, not 0.13.0. You will need to step into the folder and change the branch after your "git clone" command, as follows:

cd dash
git checkout develop
cd ..

Then continue with your "cp ..." command. You'll know it worked if you see "chia_bls" in the output of "copying packages:" after make finishes processing the depends folder. Alternatively, you could just clone the repository and build from there, which would save you downloading the source tarball (which doesn't contain the depends folder, causing this confusion in the first place ;). Hope this makes sense, let me know if you get it working!
Thanks a million! All works great, syncing fast.
So, my little how to for building dashd 0.13.0.0:

$ git clone https://github.com/dashpay/dash.git
$ cd dash
$ git checkout develop
$ cd depends
#for gentoo linux add to ~/dash/depends/packages/boost.mk --ignore-site-config (last 2 lines)
$make -j8
$cd ..
$./configure --prefix=~/dash/depends/x86_64-pc-linux-gnu --without-miniupnpc --disable-upnp-default --without-gui --with-boost-libdir=~/dash/depends/x86_64-pc-linux-gnu/lib/
$make
$make install

Building well done!

dash.conf for testnet
#--------------------------
testnet=1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
bind=YOUR_IP:19999
addnode=18.202.52.170:19999
listen=1
maxconnections=150
server=1
rpcbind=YOUR_IP
rpcuser=user
rpcpassword=your_password
rpcallowip=your_network/your_mask
rpcallowip=127.0.0.1
rpcport=9998
#-----------------------------
 

strophy

Administrator
Dash Core Team
Moderator
Dash Support Group
Feb 13, 2016
716
415
133
Looks great! Send me your testnet address here or join us on dashchat.org Discord if you want to try setting up a masternode!