-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·48 lines (38 loc) · 1.07 KB
/
install.sh
File metadata and controls
executable file
·48 lines (38 loc) · 1.07 KB
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
#!/bin/bash
echo "Installing dependecies"
{
# Find which version of Ubuntu is running
source /etc/lsb-release
if [ DISTRIB_RELEASE == "14.04" ]; then
# Add PPA for installing PCL
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl -y
sudo apt-get update
# Install PCL
sudo apt-get install libpcl-all -y
else
# Probably later version, just install PCL
sudo apt-get update
sudo apt-get install libpcl-dev -y
fi
# Install basic build dependencies and Boost
sudo apt-get install make g++ libboost-all-dev -y
} > /dev/null 2>&1
echo "Creating build dir"
mkdir -p build
cd build
echo "Downloading cmake version 3.8.1"
{
# Download recent version of cmake
wget https://cmake.org/files/v3.8/cmake-3.8.1-Linux-x86_64.sh
chmod +x cmake-3.8.1-Linux-x86_64.sh
./cmake-3.8.1-Linux-x86_64.sh --include-subdir
rm cmake-3.8.1-Linux-x86_64.sh
} > /dev/null 2>&1
echo "Generating makefiles"
{
cmake-3.8.1-Linux-x86_64/bin/cmake ..
} > /dev/null 2>&1
echo "Building 3DCopy"
make -j4 > /dev/null 2>&1
sudo make install
echo "Done"