Skip to content

Commit

Permalink
add boost in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
unixliang committed Oct 21, 2019
1 parent 5645cac commit 754b0ce
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cd third_party;
if [ ! -f protobuf/bin/protoc ]; then
if [ ! -f protobuf-cpp-3.0.0.tar.gz ]; then
wget https://github.com/google/protobuf/releases/download/v3.0.0/protobuf-cpp-3.0.0.tar.gz
fi
fi

tar zxvf protobuf-cpp-3.0.0.tar.gz
cd protobuf-3.0.0
Expand All @@ -21,6 +21,18 @@ if [ ! -f protobuf/bin/protoc ]; then
cd ../
fi


if [ ! -d boost ]; then
if [ ! -f boost_1_58_0.tar.gz ]; then
wget https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz
fi

tar zxvf boost_1_58_0.tar.gz
mv boost_1_58_0 boost
export BOOST_ROOT=`pwd`/boost
fi


cd ..

make
Expand Down

0 comments on commit 754b0ce

Please sign in to comment.