-
Notifications
You must be signed in to change notification settings - Fork 75
/
build.sh
executable file
·58 lines (41 loc) · 990 Bytes
/
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
#!/bin/bash -e
echo "Configuring and building Thirdparty/cnpy ..."
cd Thirdparty/cnpy
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
echo "configuring and building Thirdparty/fbow"
cd ../../fbow
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
echo "configuring and building Thirdparty/Dbow2"
cd ../../DBoW2
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cd ../../g2o
echo "Configuring and building Thirdparty/g2o ..."
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cd ../../../
echo "Download and Uncompress vocabulary ..."
mkdir Vocabulary
cd Vocabulary
wget https://github.com/ivipsourcecode/dxslam/releases/download/1.0.0/DXSLAM.tar.xz
tar -xf *.tar.xz
cd ..
cd hf-net
wget https://github.com/ivipsourcecode/dxslam/releases/download/1.0.0/model.tar.xz
tar -xf *.tar.xz
cd ..
echo "Configuring and building DXSLAM ..."
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4