-
Notifications
You must be signed in to change notification settings - Fork 57
/
trtk.sh
executable file
·38 lines (30 loc) · 887 Bytes
/
trtk.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
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "###############################################"
echo "# TRTK Transformation and Registration Toolkit"
echo "###############################################"
echo "https://github.com/RWTHmediTEC/TRTK"
./eigen3.sh
cmakeversion=`cmake --version`
if [[ $cmakeversion == *"cmake version 3.5.1"* ]]; then
echo "Detected incompatible cmake version 3.5.1, updating CMake from source, see cmake_source.sh for details"
./cmake_source.sh
fi
sudo apt-get install -y libflann-dev
# install https://github.com/jrl-umi3218/SpaceVecAlg
cd ~/src/
if [ ! -d ~/src/TRTK ]
then
git clone --recursive https://github.com/ahundt/TRTK.git # https://github.com/RWTHmediTEC/TRTK.git
fi
cd TRTK
git pull
mkdir -p build
cd build
cmake ..
make -j && sudo make install
cd $DIR