Commit 49f3ba45 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Removed 16.04

parent b0353721
Pipeline #8656 failed with stages
in 92 minutes and 51 seconds
......@@ -148,9 +148,7 @@ else
sudo apt install -y lsb-core
fi
UBUNTU_DISTRO=$(lsb_release -rs);
if [ $UBUNTU_DISTRO == "16.04" ]; then
func_echo "Ubuntu 16.04 - OK"
elif [ $UBUNTU_DISTRO == "18.04" ]; then
if [ $UBUNTU_DISTRO == "18.04" ]; then
func_echo "Ubuntu 18.04 - OK"
elif [ $UBUNTU_DISTRO == "20.04" ]; then
func_echo "Ubuntu 20.04 - OK"
......@@ -178,48 +176,17 @@ func_echo "Installing dependencies via apt install..."
if [ "$UID" -eq 0 -o "$EUID" -eq 0 ]; then
#apt install -y git wget unzip dh-autoreconf cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
apt install -y git wget unzip cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
apt install -y git wget unzip cmake build-essential libeigen3-dev libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
else
#sudo apt install -y git wget unzip dh-autoreconf cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
sudo apt install -y git wget unzip cmake build-essential libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
sudo apt install -y git wget unzip cmake build-essential libeigen3-dev libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
fi
# gcc version (5.4 for C++14 support)
GCC_REQ=54
GCC_V=$(gcc -v 2>&1 | grep -- 'gcc version' | tr -dc '0-9')
GCC_V=${GCC_V:0:2}
if [ $GCC_V -lt $GCC_REQ ]; then
echo "The current gcc version ${GCC_V:0:1}.${GCC_V:1:1} does not support C++14. Version ${GCC_REQ:0:1}.${GCC_REQ:1:1} or later should be installed."
exit 0
fi
# Eigen
# Ubuntu 16.04 - Eigen 3.3.7 required
if [ $UBUNTU_DISTRO == "16.04" ]; then
func_echo "Installing Eigen 3.3.7 via source..."
# todo check if installed, check version, check
wget https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip
unzip eigen-3.3.7.zip
rm eigen-3.3.7.zip
cd eigen-3.3.7
mkdir build
cd build
cmake ..
func_make_install
else
func_echo "Installing Eigen 3 via apt install"
apt install -y libeigen3-dev
fi
# ceres
func_echo "Installing ceres 2.0 via source..."
cd $DEPS_PATH
wget http://ceres-solver.org/ceres-solver-2.0.0.tar.gz
tar zxf ceres-solver-2.0.0.tar.gz
rm ceres-solver-2.0.0.tar.gz
cd ceres-solver-2.0.0
#git clone --depth 1 -b 2.0.0 https://ceres-solver.googlesource.com/ceres-solver
#cd ceres-solver
git clone --depth 1 -b 2.0.0 https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment