SKALE-1850 build improvements for dependencies

parent 406076ab
...@@ -33,6 +33,7 @@ autom4te.cache ...@@ -33,6 +33,7 @@ autom4te.cache
sgxwallet sgxwallet
testw testw
configure configure
jsonrpc/zlib
jsonrpc/argtable2 jsonrpc/argtable2
jsonrpc/jsoncpp jsonrpc/jsoncpp
jsonrpc/libjson-rpc-cpp jsonrpc/libjson-rpc-cpp
......
...@@ -9,9 +9,8 @@ ...@@ -9,9 +9,8 @@
## Install Prerequisites ## Install Prerequisites
``` ```
sudo apt-get install build-essential make cmake gcc g++ python libprotobuf10 flex bison automake libtool texinfo sudo apt-get install build-essential make cmake gcc g++ python libprotobuf10 flex bison automake libtool texinfo libgnutls30
``` ```
libssl-dev libboost-all-dev libgmp3-dev libprocps-dev libjsonrpccpp-dev
## Clone this repository and its submodules ## Clone this repository and its submodules
......
...@@ -36,6 +36,13 @@ fi ...@@ -36,6 +36,13 @@ fi
export OPENSSL_SRC_RELATIVE="../libBLS/deps/openssl" export OPENSSL_SRC_RELATIVE="../libBLS/deps/openssl"
export OPENSSL_SRC=`$READLINK -f $OPENSSL_SRC_RELATIVE` export OPENSSL_SRC=`$READLINK -f $OPENSSL_SRC_RELATIVE`
git clone https://github.com/madler/zlib.git
cd zlib
./configure --static --prefix=$INSTALL_ROOT
make
make install
cd ..
git clone https://github.com/jonathanmarvens/argtable2.git git clone https://github.com/jonathanmarvens/argtable2.git
cd argtable2 cd argtable2
mkdir -p build mkdir -p build
...@@ -58,7 +65,6 @@ make install ...@@ -58,7 +65,6 @@ make install
cd ../.. cd ../..
git clone https://github.com/curl/curl.git git clone https://github.com/curl/curl.git
tar -czf curl-from-git.tar.gz ./curl
cd curl cd curl
mkdir -p build mkdir -p build
cd build cd build
...@@ -86,6 +92,7 @@ cd .. ...@@ -86,6 +92,7 @@ cd ..
tar -xzf ./pre_downloaded/libjson-rpc-cpp.tar.gz tar -xzf ./pre_downloaded/libjson-rpc-cpp.tar.gz
cd libjson-rpc-cpp cd libjson-rpc-cpp
rn -rf build || true
mkdir -p build mkdir -p build
cd build cd build
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=$TOP_CMAKE_BUILD_TYPE \ cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=$TOP_CMAKE_BUILD_TYPE \
......
sudo dpkg -i *.deb sudo dpkg -i *.deb
sudo apt install cmake flex bison ccache autoconf texinfo sudo apt install cmake flex bison ccache autoconf texinfo libgnutls30
#libprocps-dev libssl-dev libboost-all-dev libjsonrpccpp-dev libjsonrpccpp-tools
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment