-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·61 lines (54 loc) · 1.52 KB
/
install.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
#!/bin/bash
# set -e
## Install the dependencies
# sudo apt-get update
# sudo apt install -y build-essential
# sudo apt install -y cmake libexpat-dev expat default-jre
PROJECT_ROOT=$PWD
# git init
# git submodule add https://github.com/COVESA/vsomeip.git
# git submodule add https://github.com/COVESA/capicxx-someip-runtime.git
# git submodule add https://github.com/COVESA/capicxx-core-runtime.git
git submodule init
git submodule update
## Install Boost library
echo -e "\033[36m• Installing Boost library\033[0m"
wget https://github.com/boostorg/boost/releases/download/boost-1.85.0/boost-1.85.0-b2-nodocs.tar.gz
tar -xzvf boost-1.85.0-b2-nodocs.tar.gz
cd boost-1.85.0/
./bootstrap.sh && ./b2 install
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Error: Install Boost"
exit $retVal
fi
echo -e "\033[36m• Installing capicxx-core-runtime library\033[0m"
cd $PROJECT_ROOT/capicxx-core-runtime
mkdir -p build
cd build/
cmake .. && make install
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Error: Install capicxx-core-runtime"
exit $retVal
fi
echo -e "\033[36m• Installing vsomeip library\033[0m"
cd $PROJECT_ROOT/vsomeip
mkdir -p build
cd build/
cmake .. && make install
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Error: Install vsomeip"
exit $retVal
fi
echo -e "\033[36m• Installing capicxx-someip-runtime library\033[0m"
cd $PROJECT_ROOT/capicxx-someip-runtime
mkdir -p build
cd build/
cmake .. && make install
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Error: Install capicxx-someip-runtime"
exit $retVal
fi