Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_scripts
Commits
49f3ba45
Commit
49f3ba45
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
Removed 16.04
parent
b0353721
No related branches found
No related tags found
No related merge requests found
Pipeline
#8656
failed
3 years ago
Stage: install
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install_wolf.sh
+5
-38
5 additions, 38 deletions
install_wolf.sh
with
5 additions
and
38 deletions
install_wolf.sh
+
5
−
38
View file @
49f3ba45
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment