forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
first_compile.sh
executable file
·60 lines (45 loc) · 1.65 KB
/
first_compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo add-apt-repository -y ppa:bitcoin/bitcoin
sudo apt-get -y update
# Bitcoin dependencies
sudo apt-get -y install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
# Build with self-compiled depends to re-enable wallet compatibility
sudo apt-get -y install libssl-dev libevent-dev libboost-all-dev
# GUI dependencies
sudo apt-get -y install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get -y install libqrencode-dev
# Bitcoin wallet functionality
sudo apt-get -y install libdb-dev libdb++-dev
# Incoming connections
sudo apt-get -y install libminiupnpc-dev
# Used to check what windows are open
sudo apt-get -y install wmctrl
# Traceroute access
sudo apt-get -y install inetutils-traceroute
make clean
./autogen.sh
./configure --with-miniupnpc --enable-upnp-default --with-incompatible-bdb # --disablewallet # --prefix=`pwd`/depends/x86_64-linux-gnu
#./configure --without-miniupnpc --enable-upnp-default --with-incompatible-bdb # --disablewallet # --prefix=`pwd`/depends/x86_64-linux-gnu
make -j$(nproc)
# Compile Tor
rm -rf tor-researcher
git clone https://github.com/peer-connectivity-estimator/tor-researcher.git
cd tor-researcher
./first_compile.sh
cd ..
# Compile I2P
rm -rf i2pd-researcher
git clone https://github.com/peer-connectivity-estimator/i2pd-researcher.git
cd i2pd-researcher
./first_compile.sh
cd ..
# # Compile CJDNS
# rm -rf cjdns-researcher
# git clone https://github.com/peer-connectivity-estimator/cjdns-researcher.git
# cd cjdns-researcher
# ./first_compile.sh
# cd ..
params=""
for var in "$@"; do
params="$params $var"
done
./run.sh $params