-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_thirdparty.sh
executable file
·78 lines (64 loc) · 2.2 KB
/
build_thirdparty.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
# update submodules
echo "----------------------------------------------------"
echo "update submodules remotely, it may take some time..."
echo "----------------------------------------------------"
git submodule update --init --recursive
if [ $? -ne 0 ]; then
echo "--------------------------------------------"
echo "error occurs when updating submodules, exit!"
echo "--------------------------------------------"
exit
fi
# shellcheck disable=SC2046
EKALIBR_ROOT_PATH=$(cd $(dirname $0) || exit; pwd)
echo "the root path of 'ctraj': ${EKALIBR_ROOT_PATH}"
# build tiny-viewer
echo "----------------------------------"
echo "build thirdparty: 'tiny-viewer'..."
echo "----------------------------------"
# shellcheck disable=SC2164
cd "${EKALIBR_ROOT_PATH}"/thirdparty/ctraj
chmod +x build_thirdparty.sh
./build_thirdparty.sh
# build ctraj
echo "----------------------------"
echo "build thirdparty: 'ctraj'..."
echo "----------------------------"
mkdir ${EKALIBR_ROOT_PATH}/thirdparty/ctraj-build
# shellcheck disable=SC2164
cd "${EKALIBR_ROOT_PATH}"/thirdparty/ctraj-build
cmake ../ctraj
echo current path: $PWD
echo "-----------------------"
echo "start making 'ctraj'..."
echo "-----------------------"
make -j8
cmake --install . --prefix "${EKALIBR_ROOT_PATH}/thirdparty/ctraj-install"
# build opengv
echo "-----------------------------"
echo "build thirdparty: 'opengv'..."
echo "-----------------------------"
mkdir ${EKALIBR_ROOT_PATH}/thirdparty/opengv-build
# shellcheck disable=SC2164
cd "${EKALIBR_ROOT_PATH}"/thirdparty/opengv-build
cmake ../opengv
echo current path: $PWD
echo "------------------------"
echo "start making 'opengv'..."
echo "------------------------"
make -j8
cmake --install . --prefix "${EKALIBR_ROOT_PATH}/thirdparty/opengv-install"
# build veta
echo "---------------------------"
echo "build thirdparty: 'veta'..."
echo "---------------------------"
mkdir ${EKALIBR_ROOT_PATH}/thirdparty/veta-build
# shellcheck disable=SC2164
cd "${EKALIBR_ROOT_PATH}"/thirdparty/veta-build
cmake ../veta
echo current path: $PWD
echo "----------------------"
echo "start making 'veta'..."
echo "----------------------"
make -j8
cmake --install . --prefix "${EKALIBR_ROOT_PATH}/thirdparty/veta-install"