-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathenviroment.bash
82 lines (82 loc) · 2.05 KB
/
enviroment.bash
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
79
80
81
82
#boost library
echo "install boost library:"
stTime=$(date +"%Y-%m-%d %T")
echo $stTime
sudo apt-get install libboost-all-dev
endTime=$(date +"%Y-%m-%d %T")
echo $endTime
#opencv instsall
echo "install opencv library"
stTime=$(date +"%Y-%m-%d %T")
echo $stTime
sudo apt-get install libopencv-dev
endTime=$(date +"%Y-%m-%d %T")
echo $endTime
#gdal install
echo "install gdal library"
stTime=$(date +"%Y-%m-%d %T")
echo $stTime
sudo apt-get install libgdal-dev
endTime=$(date +"%Y-%m-%d %T")
echo $endTime
#gtest install
echo "install gtest library"
stTime=$(date +"%Y-%m-%d %T")
echo $stTime
sudo apt-get install libgtest-dev
cd /usr/src/gtest
sudo mkdir build
cd build
sudo cmake ../
sudo make -j4
sudo cp libgtest*.a /usr/local/lib
endTime=$(date +"%Y-%m-%d %T")
echo $endTime
#download and install liblas
echo "install liblas library"
stTime=$(date +"%Y-%m-%d %T")
echo $stTime
cd /home
sudo git clone https://github.com/libLAS/libLAS.git
sudo mkdir buildliblas
cd buildliblas
sudo cmake ../libLAS/
sudo make -j4
sudo make install
endTime=$(date +"%Y-%m-%d %T")
echo $endTime
#download and instsall laszip
echo "install laszip library"
stTime=$(date +"%Y-%m-%d %T")
echo $stTime
cd /home
sudo git clone https://github.com/LASzip/LASzip.git
sudo mkdir buildlaszip
cd buildlaszip
sudo cmake ../LASzip/
sudo make -j4
sudo make install
endTime=$(date +"%Y-%m-%d %T")
echo $endTime
#PCL
echo "install PCL library"
stTime=$(date +"%Y-%m-%d %T")
cd /home/
echo $stTime
sudo apt-get install libflann-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libcap-dev
sudo apt-get install libpcap0.8-dev
sudo apt-get install libeigen3-dev
sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
sudo ln -s /usr/include/eigen3/unsupported/ /usr/include/unsupported
#脚本超时在travis中,因此在外构建,在本机上不存在问题
sudo git clone https://github.com/PointCloudLibrary/pcl pcl-trunk
cd pcl-trunk
sudo mkdir buildpcl && cd buildpcl
sudo cmake -DCMAKE_BUILD_TYPE=Release ../
sudo make -j4
sudo make install
cd /home
endTime=$(date +"%Y-%m-%d %T")
echo $endTime