forked from Jumperbillijumper/JumpCoin-Build-Kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
82 lines (55 loc) · 2.21 KB
/
build.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
sudo apt-get update
sudo apt-get install gcc make git wget curl qt4-dev-tools libqt4-dev libcxxtools-dev -y
mkdir jumpcoin_builKit
cd jumpcoin_builKit
export basePath=$(pwd)
wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar -xf boost_1_58_0.tar.gz
tar -xf db-4.8.30.NC.tar.gz
git clone https://github.com/openssl/openssl.git
git clone https://github.com/Jumperbillijumper/jumpcoin.git
git clone https://github.com/sagacrypto/SagaCoin.git
mv jumpcoin/src/leveldb jumpcoin/src/leveldb.OLD
cp SagaCoin/src/leveldb jumpcoin/src/leveldb -r
cd openssl
git checkout OpenSSL_1_0_1-stable
./config --prefix="$basePath/openssl/build" --openssldir=openssl
make
make install
cd ..
cd db-4.8.30.NC/build_unix
../dist/configure --prefix="$basePath/db-4.8.30.NC/build_unix" --enable-cxx --enable-shared
make
make install
cd ..
cd ..
cd boost_1_58_0
./bootstrap.sh --prefix=build
./b2 install --prefix=build
cd ..
rm boost_1_58_0/build/include/boost/asio/ssl/impl/context.ipp
curl https://raw.githubusercontent.com/LHK1337/JumpCoin-Build-Kit/master/context.ipp > boost_1_58_0/build/include/boost/asio/ssl/impl/context.ipp
rm jumpcoin/src/makefile.unix
curl https://raw.githubusercontent.com/LHK1337/JumpCoin-Build-Kit/master/makefile.unix > jumpcoin/src/makefile.unix
cd jumpcoin/src/leveldb
chmod +x ./build_detect_platform
make
make libleveldb.a
make libmemenv.a
cd ..
export BOOST_INCLUDE_PATH=$basePath/boost_1_58_0/build/include
export BDB_INCLUDE_PATH=$basePath/db-4.8.30.NC/build_unix/include
export OPENSSL_INCLUDE_PATH=$basePath/openssl/build/include
export BOOST_LIB_PATH=$basePath/boost_1_58_0/build/lib
export BDB_LIB_PATH=$basePath/db-4.8.30.NC/build_unix/lib
export OPENSSL_LIB_PATH=$basePath/openssl/build/lib
make -f makefile.unix
strip jumpcoind
cd ..
qmake INCLUDEPATH+="$OPENSSL_INCLUDE_PATH $BDB_INCLUDE_PATH $BOOST_INCLUDE_PATH" LIBS+="-ldl -L$OPENSSL_LIB_PATH -L$BDB_LIB_PATH -L$BOOST_LIB_PATH -lleveldb" USE_UPNP=-
make
cd ..
echo ###########################################################
echo "Don't forget to add $BDB_LIB_PATH to your LD_LIBRARY_PATH"
echo ###########################################################