-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_dependencies.sh
executable file
·66 lines (56 loc) · 1.64 KB
/
install_dependencies.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
# Dependency Installation
mkdir deps && cd deps
# 1. RaftLib
echo ********** Installing RaftLib **********
git clone https://github.com/gt-flexr/RaftLib.git && cd RaftLib
mkdir build && cd build && cmake .. && make -j$(nproc)
sudo make install
cd ../..
# 2. libzmq & cppzmq
echo ********** Installing libzmq and cppzmq **********
sudo apt install libsodium-dev
git clone https://github.com/zeromq/libzmq.git && cd libzmq
git checkout v4.3.4
mkdir build && cd build && cmake ..
make -j$(nproc)
sudo make install
cd ../..
git clone https://github.com/zeromq/cppzmq.git && cd cppzmq
mkdir build && cd build && cmake ..
make -j$(nproc)
sudo make install
cd ../..
# 3. spdlog
echo ********** Installing spdlog **********
git clone https://github.com/gabime/spdlog.git && cd spdlog
git checkout v1.8.2
mkdir build && cd build
cmake .. && make -j$(nproc)
sudo make install
cd ../..
## 4. uvgRTP
echo ********** Installing uvgRTP **********
sudo apt install libcrypto++-dev
git clone https://github.com/gt-flexr/uvgRTP.git
cd uvgRTP && mkdir build && cd build
cmake -DDISABLE_CRYPTO=1 .. && make -j$(nproc)
sudo make install
cd ../..
## 5. Catch2
echo ********** Installing Catch2 **********
git clone https://github.com/jheo4/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
cd ..
## 6. Boost
echo ********** Installing Boost **********
sudo apt-get install libboost-all-dev
## 7. Shared memory queue
echo ********** Installing Shared memory queue **********
git clone https://github.com/gt-flexr/FleXR_ShmQ.git
cd FleXR_ShmQ && mkdir build && cd build && cmake ..
make -j$(nproc)
sudo make install
cd ../..
sudo ldconfig