-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_dependencies_raspberry.sh
43 lines (42 loc) · 1.11 KB
/
setup_dependencies_raspberry.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
#! /bin/bash
assert_result () {
RESULT=$?
if [ $RESULT -ne 0 ]
then
echo "Error, bailing out"
exit $RESULT
fi
}
#sudo apt install -y libssl-dev zip
#assert_result
echo "Building CMake"
#wget https://github.com/Kitware/CMake/releases/download/v3.19.6/cmake-3.19.6.tar.gz
#assert_result
#tar xf cmake-3.19.6.tar.gz
#assert_result
WD=`pwd`
cd cmake-3.19.6
#assert_result
#./bootstrap -- -DCMAKE_BUILD_TYPE:STRING=Release
#assert_result
#make
#assert_result
#sudo make install
#assert_result
#sudo apt-get install -y ninja-build
#assert_result
echo "Going back to $WD"
cd ${WD}
assert_result
echo "Building vcpkg"
#assert_result
#./vcpkg/bootstrap-vcpkg.sh -useSystemBinaries
#assert_result
echo "Building dependencies"
export VCPKG_FORCE_SYSTEM_BINARIES=1
./vcpkg/vcpkg install boost boost-program-options boost-any boost-asio boost-filesystem boost-functional boost-random boost-filesystem boost-regex zlib easyloggingpp picojson msgpack
assert_result
#./vcpkg/vcpkg install openssl is it needed? see sudp apt install
sudo VCPKG_FORCE_SYSTEM_BINARIES=1 ./vcpkg/vcpkg integrate install
assert_result
echo "Completed successfully"