forked from jonazpiazu/PTAM
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build_all.sh
executable file
·57 lines (47 loc) · 1.58 KB
/
build_all.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
#!/bin/bash
cd 3rdparty.old/TooN/
./configure prefix=$HOME/bin/toon_2009
make && make install
ln -s $HOME/bin/toon_2009/ $HOME/bin/TooN
export CFLAGS+=" -I $HOME/bin/TooN/include/ "
export CPPFLAGS+=" -I $HOME/bin/TooN/include/ "
cd ../libcvd
export CXXFLAGS="-D_REENTRANT -fomit-frame-pointer"
./configure --without-ffmpeg --prefix=$HOME/bin/libcvd_2009 --without-v4l1buffer --with-linux=`uname -r`
echo
echo Press enter to compile libcvd
read
make && make install
ln -s $HOME/bin/libcvd_2009/ $HOME/bin/libcvd
export CFLAGS+=" -I $HOME/bin/libcvd/include/ "
export CPPFLAGS+=" -I $HOME/bin/libcvd/include/ "
export LD_LIBRARY_PATH+=" -L $HOME/bin/libcvd/lib/ "
cd ../gvars3
./configure --disable-widgets --prefix=$HOME/bin/gvars3_2009
echo
echo Press enter to compile gvars3
read
make && make install
ln -s $HOME/bin/gvars3_2009/ $HOME/bin/gvars3
export CFLAGS+=" -I $HOME/bin/gvars3/include/ "
export CPPFLAGS+=" -I $HOME/bin/gvars3/include/ "
export LD_LIBRARY_PATH+=" -L $HOME/bin/gvars3/lib/ "
cd ../../
echo
echo Press enter to compile PTAM
read
make
echo
echo Do not forget to add
echo
echo \#TooN
echo export CFLAGS+="\" -I $HOME/bin/TooN/include/ "\"
echo export CPPFLAGS+="\" -I $HOME/bin/TooN/include/ "\"
echo \#libcvd
echo export CFLAGS+="\" -I $HOME/bin/libcvd/include/ "\"
echo export CPPFLAGS+="\" -I $HOME/bin/libcvd/include/ "\"
echo export LD_LIBRARY_PATH+="\" -L $HOME/bin/libcvd/lib/ "\"
echo \#gvars3
echo export CFLAGS+="\" -I $HOME/bin/gvars3/include/ "\"
echo export CPPFLAGS+="\" -I $HOME/bin/gvars3/include/ "\"
echo export LD_LIBRARY_PATH+="\" -L $HOME/bin/gvars3/lib/ "\"