-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·80 lines (61 loc) · 1.07 KB
/
build.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
67
68
69
70
71
72
73
74
75
76
77
78
79
echo " "
echo "Configuring and building Thirdparty/DBoW2 ..."
cd Thirdparty/DBoW2
case $1 in 0)
mkdir build
;;
esac
cd build
case $1 in 0)
cmake .. -DCMAKE_BUILD_TYPE=Release
;;
esac
make -j
echo " "
echo "Configuring and building Thirdparty/g2o ..."
cd ../../g2o
case $1 in 0)
mkdir build
;;
esac
cd build
case $1 in 0)
cmake .. -DCMAKE_BUILD_TYPE=Release
;;
esac
make -j
cd ../../../
case $1 in 0)
echo " "
echo "Uncompress vocabulary ..."
cd Vocabulary
tar -xf ORBvoc.txt.tar.gz
cd ..
;;
esac
echo " "
echo "Configuring and building ORB_SLAM3 ..."
case $1 in 0)
mkdir build
;;
esac
cd build
case $1 in 0)
cmake .. -DCMAKE_BUILD_TYPE=Release
;;
esac
make -j
echo " "
echo "Configuring and building ROS examples ..."
cd ../Examples/ROS/ORB_SLAM3_E
case $1 in 0)
mkdir build
;;
esac
cd build
case $1 in 0)
cmake .. -DROS_BUILD_TYPE=Release
;;
esac
make
echo " "