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

checking gcc version

parent da180275
No related branches found
No related tags found
No related merge requests found
......@@ -160,9 +160,20 @@ 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 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
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 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
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
......
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