kopia lustrzana https://github.com/OpenDroneMap/ODM
rodzic
60afa41039
commit
77beac21cf
|
|
@ -8,7 +8,7 @@ ExternalProject_Add(${_proj_name}
|
||||||
#--Download step--------------
|
#--Download step--------------
|
||||||
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
||||||
URL https://github.com/ros/catkin/archive/indigo-devel.zip
|
URL https://github.com/ros/catkin/archive/indigo-devel.zip
|
||||||
URL_MD5 18a205af195d10a8f256f498511f704a
|
URL_MD5 3878179d2a4e7f4273e09bd49e3d48bc
|
||||||
#--Update/Patch step----------
|
#--Update/Patch step----------
|
||||||
UPDATE_COMMAND ""
|
UPDATE_COMMAND ""
|
||||||
#--Configure step-------------
|
#--Configure step-------------
|
||||||
|
|
|
||||||
85
configure.sh
85
configure.sh
|
|
@ -25,10 +25,7 @@ sudo apt-get install build-essential \
|
||||||
cmake \
|
cmake \
|
||||||
git \
|
git \
|
||||||
python-pip \
|
python-pip \
|
||||||
pkg-config \
|
pkg-config -y
|
||||||
libavcodec-dev \
|
|
||||||
libavformat-dev \
|
|
||||||
libswscale-dev -y
|
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo -e "\e[1;31mERROR: \e[39mWhen Installing Required Requisites\e[0m"
|
echo -e "\e[1;31mERROR: \e[39mWhen Installing Required Requisites\e[0m"
|
||||||
|
|
@ -36,11 +33,13 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Installing Optional Requisites
|
## Installing Optional Requisites
|
||||||
echo -e "\e[1;34mInstalling Optional Requisites\e[0;39m"
|
echo -e "\e[1;34mInstalling OpenCV Dependencies\e[0;39m"
|
||||||
sudo apt-get install python-dev \
|
sudo apt-get install libgtk2.0-dev \
|
||||||
|
libavcodec-dev \
|
||||||
|
libavformat-dev \
|
||||||
|
libswscale-dev \
|
||||||
|
python-dev \
|
||||||
python-numpy \
|
python-numpy \
|
||||||
python-pyexiv2 \
|
|
||||||
python-scipy \
|
|
||||||
libtbb2 \
|
libtbb2 \
|
||||||
libtbb-dev \
|
libtbb-dev \
|
||||||
libjpeg-dev \
|
libjpeg-dev \
|
||||||
|
|
@ -49,46 +48,58 @@ sudo apt-get install python-dev \
|
||||||
libjasper-dev \
|
libjasper-dev \
|
||||||
libflann-dev \
|
libflann-dev \
|
||||||
libproj-dev \
|
libproj-dev \
|
||||||
libboost-all-dev \
|
|
||||||
libboost-python-dev \
|
|
||||||
libxext-dev \
|
libxext-dev \
|
||||||
liblapack-dev \
|
liblapack-dev \
|
||||||
libeigen3-dev \
|
libeigen3-dev \
|
||||||
libgtk2.0-dev \
|
libvtk5-dev -y
|
||||||
libvtk5-dev \
|
|
||||||
libgoogle-glog-dev \
|
|
||||||
libsuitesparse-dev -y
|
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo -e "\e[1;33mWARNING: \e[39mError when Installing Optional Requisites\e[0m"
|
echo -e "\e[1;31mERROR: \e[39mError when Installing Dependencies Requisites\e[0m"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Installing OpenSfM Requisites
|
|
||||||
echo -e "\e[1;34mInstalling OpenSfM Dependencies\e[0;39m"
|
|
||||||
sudo pip install networkx \
|
|
||||||
PyYAML \
|
|
||||||
numpy \
|
|
||||||
exifread \
|
|
||||||
gpxpy \
|
|
||||||
xmltodict
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo -e "\e[1;33mWARNING: \e[39mError when Installing OpenSfM Dependencies\e[0m"
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Installing OpenSfM Requisites
|
|
||||||
echo -e "\e[1;34mInstalling Ecto Dependencies\e[0;39m"
|
|
||||||
sudo pip install catkin-pkg
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo -e "\e[1;33mWARNING: \e[39mError when Installing Ecto Dependencies\e[0m"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
## Remove libdc1394-22-dev due to python opencv issue
|
## Remove libdc1394-22-dev due to python opencv issue
|
||||||
echo -e "\e[1;34mRemoving libdc1394-22-dev\e[0;39m"
|
echo -e "\e[1;34mRemoving libdc1394-22-dev\e[0;39m"
|
||||||
sudo apt-get remove libdc1394-22-dev
|
sudo apt-get remove libdc1394-22-dev
|
||||||
|
|
||||||
|
## Installing OpenSfM Requisites
|
||||||
|
echo -e "\e[1;34mInstalling OpenSfM Dependencies\e[0;39m"
|
||||||
|
sudo apt-get install python-networkx \
|
||||||
|
libgoogle-glog-dev \
|
||||||
|
libsuitesparse-dev \
|
||||||
|
libboost-all-dev \
|
||||||
|
libboost-python-dev -y
|
||||||
|
|
||||||
|
sudo pip install -U PyYAML \
|
||||||
|
exifread \
|
||||||
|
gpxpy \
|
||||||
|
xmltodict
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\e[1;31mERROR: \e[39mError when Installing OpenSfM Dependencies\e[0m"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Installing Ecto Requisites
|
||||||
|
echo -e "\e[1;34mInstalling Ecto Dependencies\e[0;39m"
|
||||||
|
sudo pip install -U catkin-pkg
|
||||||
|
sudo apt-get install python-empy -y
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\e[1;31mERROR: \e[39mError when Installing Ecto Dependencies\e[0m"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Installing OpenDroneMap Requisites
|
||||||
|
echo -e "\e[1;34mInstalling OpenDroneMap Dependencies\e[0;39m"
|
||||||
|
sudo apt-get install python-pyexiv2 \
|
||||||
|
python-scipy -y
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "\e[1;31mERROR: \e[39mError when Installing OpenDroneMap Dependencies\e[0m"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
## Get sys vars
|
## Get sys vars
|
||||||
NUM_CORES=`grep -c processor /proc/cpuinfo`
|
NUM_CORES=`grep -c processor /proc/cpuinfo`
|
||||||
|
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue