-
Notifications
You must be signed in to change notification settings - Fork 6
/
build_thirdparty.sh
executable file
·50 lines (42 loc) · 1.66 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
#
# Copyright (c) 2024. Created on 4/5/24 12:21 PM by [email protected] (Shuolong Chen), who received the B.S. degree in
# geodesy and geomatics engineering from Wuhan University, Wuhan China, in 2023. He is currently a master candidate at
# the school of Geodesy and Geomatics, Wuhan University. His area of research currently focuses on integrated navigation
# systems and multi-sensor fusion.
#
# 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
RIVER_ROOT_PATH=$(cd $(dirname $0) || exit; pwd)
echo "the root path of 'RIs-Calib': ${RIVER_ROOT_PATH}"
# build tiny-viewer
echo "----------------------------------"
echo "build thirdparty: 'tiny-viewer'..."
echo "----------------------------------"
# shellcheck disable=SC2164
cd ${RIVER_ROOT_PATH}/thirdparty/ctraj
chmod +x build_thirdparty.sh
./build_thirdparty.sh
# build ctraj
echo "----------------------------"
echo "build thirdparty: 'ctraj'..."
echo "----------------------------"
mkdir ${RIVER_ROOT_PATH}/thirdparty/ctraj-build
# shellcheck disable=SC2164
cd "${RIVER_ROOT_PATH}"/thirdparty/ctraj-build
cmake ../ctraj
echo current path: $PWD
echo "-----------------------"
echo "start making 'ctraj'..."
echo "-----------------------"
make -j8
cmake --install . --prefix ${RIVER_ROOT_PATH}/thirdparty/ctraj-install