Skip to content
Snippets Groups Projects
Commit d707f65a authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

added 22 and cmake version with pip in 18

parent 6cca4ac1
No related branches found
No related tags found
1 merge request!2Resolve "ubuntu 22 and CMAKE 3.16"
Pipeline #17602 canceled
......@@ -186,6 +186,8 @@ if [ $UBUNTU_DISTRO == "18.04" ]; then
func_echo "Ubuntu 18.04 - OK"
elif [ $UBUNTU_DISTRO == "20.04" ]; then
func_echo "Ubuntu 20.04 - OK"
elif [ $UBUNTU_DISTRO == "22.04" ]; then
func_echo "Ubuntu 22.04 - OK"
else
func_echo_error "Non-supported Ubuntu version: ${UBUNTU_DISTRO}"
exit 1
......@@ -209,12 +211,23 @@ func_echo "path dependencies: $DEPS_PATH"
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 libeigen3-dev libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
# install packages (apt & pip)
if [ $UBUNTU_DISTRO == "18.04" ]; then # Ensure required CMAKE version with pip in ubuntu 18.04
if [ "$UID" -eq 0 -o "$EUID" -eq 0 ]; then
apt install -y git wget unzip python-pip build-essential libeigen3-dev libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
pip install --upgrade pip
pip install cmake==3.16.*
else
sudo apt install -y git wget unzip python-pip build-essential libeigen3-dev libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
sudo pip install --upgrade pip
sudo pip install cmake==3.16.*
fi
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 libeigen3-dev libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev git libboost-all-dev libyaml-cpp-dev wget unzip
if [ "$UID" -eq 0 -o "$EUID" -eq 0 ]; then
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 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
fi
# ceres
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment