-
Notifications
You must be signed in to change notification settings - Fork 5
/
dependencies.sh
56 lines (49 loc) · 1.67 KB
/
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
#!/bin/bash
# Please make sure that bin/bash is the location of your bash terminal,if not please replace with your local machine's bash path
branch="${1:-development}"
sudo apt install -y curl
curl -O https://raw.githubusercontent.com/robocomp/robocomp_core/${branch}/classes/threadpool/threadpool.h && sudo mkdir -p /usr/include/threadpool && sudo mv threadpool.h /usr/include/threadpool
sudo apt install qt6-base-dev
sudo apt-get install -y libopenscenegraph-dev
sudo apt install libasio-dev
sudo apt install libtinyxml2-dev
sudo apt install libopencv-dev
sudo apt install libqglviewer-dev-qt6
sudo apt install libeigen3-dev
sudo apt install python3-dev python3-pybind11
sudo apt install cmake gcc-10 g++-10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 1
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 1
echo "Installing third-party software cppitertools"
sudo git clone https://github.com/ryanhaining/cppitertools /usr/local/include/cppitertools
cd /usr/local/include/cppitertools
sudo mkdir build
cd build
sudo cmake ..
sudo make install
echo "Installing third-party software Fast-RTPS"
mkdir -p ~/software
cd ~/software
git clone https://github.com/eProsima/Fast-CDR.git
mkdir Fast-CDR/build
cd Fast-CDR/build
export MAKEFLAGS=-j$(($(grep -c ^processor /proc/cpuinfo) - 0))
cmake ..
cmake --build .
sudo make install
cd ~/software
git clone https://github.com/eProsima/foonathan_memory_vendor.git
cd foonathan_memory_vendor
mkdir build
cd build
cmake ..
cmake --build .
sudo make install
cd ~/software
git clone https://github.com/eProsima/Fast-DDS.git
mkdir Fast-DDS/build
cd Fast-DDS/build
cmake ..
cmake --build .
sudo make install
sudo ldconfig