OpenDroneMap-ODM/configure.sh

92 wiersze
2.8 KiB
Bash
Czysty Zwykły widok Historia

2015-11-16 13:47:29 +00:00
#!/bin/bash
## Set up library paths
RUNPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PYTHONPATH=$RUNPATH/SuperBuild/install/lib/python2.7/dist-packages:$RUNPATH/SuperBuild/src/opensfm:$PYTHONPATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RUNPATH/SuperBuild/install/lib
2015-11-16 13:47:29 +00:00
## Before installing
2016-07-21 03:00:36 +00:00
echo "Updating the system"
2015-11-16 13:47:29 +00:00
sudo apt-get update
2016-07-21 03:00:36 +00:00
echo "Installing Required Requisites"
sudo apt-get install -y -qq build-essential \
2015-11-16 13:47:29 +00:00
git \
2016-07-22 19:10:01 +00:00
cmake \
2015-11-16 13:47:29 +00:00
python-pip \
2016-02-25 20:26:58 +00:00
libgdal-dev \
2016-04-20 14:36:21 +00:00
gdal-bin \
2016-02-25 20:29:41 +00:00
libgeotiff-dev \
pkg-config
2016-03-24 17:35:29 +00:00
2016-07-21 17:51:58 +00:00
echo "Getting CMake 3.1 for MVS-Texturing"
sudo apt-get install -y software-properties-common python-software-properties
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
sudo apt-get update -y
sudo apt-get install -y --only-upgrade cmake
2015-11-16 13:47:29 +00:00
2016-07-21 03:00:36 +00:00
echo "Installing OpenCV Dependencies"
sudo apt-get install -y -qq libgtk2.0-dev \
2015-12-01 09:52:14 +00:00
libavcodec-dev \
libavformat-dev \
libswscale-dev \
2015-12-16 15:10:38 +00:00
python-dev \
2015-11-16 13:47:29 +00:00
python-numpy \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
2015-11-20 12:34:34 +00:00
libflann-dev \
2015-11-23 11:23:30 +00:00
libproj-dev \
2015-12-16 15:10:38 +00:00
libxext-dev \
2015-11-16 13:47:29 +00:00
liblapack-dev \
libeigen3-dev \
libvtk5-dev
2015-11-16 13:47:29 +00:00
2016-07-21 03:00:36 +00:00
echo "Removing libdc1394-22-dev due to python opencv issue"
2015-12-01 09:52:14 +00:00
sudo apt-get remove libdc1394-22-dev
## Installing OpenSfM Requisites
2016-07-21 03:00:36 +00:00
echo "Installing OpenSfM Dependencies"
sudo apt-get install -y -qq python-networkx \
2015-12-01 09:52:14 +00:00
libgoogle-glog-dev \
libsuitesparse-dev \
2016-03-15 14:21:52 +00:00
libboost-filesystem-dev \
libboost-iostreams-dev \
libboost-regex-dev \
libboost-python-dev \
libboost-date-time-dev \
2016-09-30 13:43:27 +00:00
libboost-thread-dev \
python-pyproj
2015-12-01 09:52:14 +00:00
sudo pip install -U PyYAML \
exifread \
gpxpy \
xmltodict
2016-07-21 03:00:36 +00:00
echo "Installing Ecto Dependencies"
2015-12-22 12:29:13 +00:00
sudo pip install -U catkin-pkg
sudo apt-get install -y -qq python-empy \
2015-12-01 13:46:13 +00:00
python-nose \
python-pyside
2015-11-23 16:56:12 +00:00
2016-07-21 03:00:36 +00:00
echo "Installing OpenDroneMap Dependencies"
2016-08-01 14:55:52 +00:00
sudo apt-get install -y -qq python-pyexiv2 \
2015-12-01 13:46:13 +00:00
python-scipy \
2015-12-11 21:24:52 +00:00
jhead \
2016-08-01 14:55:52 +00:00
liblas-bin
2015-11-23 11:23:30 +00:00
2016-07-21 03:00:36 +00:00
echo "Compiling SuperBuild"
2015-12-21 16:52:57 +00:00
cd SuperBuild
2015-11-16 13:47:29 +00:00
mkdir -p build && cd build
cmake .. && make -j$(nproc)
echo "Compiling build"
cd ../..
mkdir -p build && cd build
cmake .. && make -j$(nproc)
2015-12-01 13:33:04 +00:00
2016-07-21 03:00:36 +00:00
echo "Configuration Finished"