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

removed all sudo

parent 26db663b
No related branches found
No related tags found
No related merge requests found
Pipeline #8473 canceled
# wolf_installer
This repository has an script to install the wolf library (core and plugins) along with its dependencies.
This project is not meant to be cloned but to download the script (``install_wolf.sh``).
The ``expect`` script ``auto_script_wolf`` is used by the continuous integration to test the installation script in different ubuntu distributions.
\ No newline at end of file
......@@ -53,9 +53,7 @@ fi
if [ $VERBOSE == "true" ]; then
echo "Installing dependencies via apt install..."
fi
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
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
# Eigen
# Ubuntu 16.04 - Eigen 3.3.7 required
......@@ -71,12 +69,12 @@ if [ $UBUNTU_DISTRO == "16.04" ]; then
mkdir build
cd build
cmake ..
sudo make install
make install
else
if [ $VERBOSE == "true" ]; then
echo "Installing Eigen 3 via apt install"
fi
sudo apt install -y libeigen3-dev
apt install -y libeigen3-dev
fi
# ceres
......@@ -92,7 +90,7 @@ mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
make test
sudo make install
make install
# spdlog
if [ $VERBOSE == "true" ]; then
......@@ -106,7 +104,7 @@ git pull
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fPIC" ..
make -j$CORES
sudo make install
make install
# WOLF #####################################################
......@@ -145,7 +143,7 @@ make -j$CORES
if [ $VERBOSE == "true" ]; then
echo "Installing wolf core..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing wolf core..."
......@@ -177,7 +175,7 @@ if [ $INSTALL_IMU == "y" ]; then
if [ $VERBOSE == "true" ]; then
echo "Installing plugin imu..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing plugin imu..."
......@@ -205,7 +203,7 @@ if [ $INSTALL_GNSS == "y" ]; then
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DEMOS=ON -DBUILD_TESTS=ON ..
make -j$CORES
ctest -j$CORES
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Cloning plugin gnss..."
......@@ -226,7 +224,7 @@ if [ $INSTALL_GNSS == "y" ]; then
if [ $VERBOSE == "true" ]; then
echo "Installing plugin gnss..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing plugin gnss..."
......@@ -258,7 +256,7 @@ if [ $INSTALL_LASER == "y" ]; then
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
sudo make install
make install
else
if [ $VERBOSE == "true" ]; then
echo "Skipping CSM."
......@@ -275,7 +273,7 @@ if [ $INSTALL_LASER == "y" ]; then
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
sudo make install
make install
else
if [ $VERBOSE == "true" ]; then
echo "Skipping Falko."
......@@ -287,21 +285,21 @@ if [ $INSTALL_LASER == "y" ]; then
echo "Installing laser_scan_utils (required)..."
fi
cd $DEPS_PATH
sudo ldconfig
ldconfig
git clone https://gitlab.iri.upc.edu/labrobotica/algorithms/laser_scan_utils.git
cd laser_scan_utils
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
ctest -j$CORES
sudo make install
make install
# PLUGIN
if [ $VERBOSE == "true" ]; then
echo "Cloning plugin laser..."
fi
cd $WOLF_PATH
sudo ldconfig
ldconfig
git clone https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/laser.git
cd laser
git pull
......@@ -317,12 +315,12 @@ if [ $INSTALL_LASER == "y" ]; then
if [ $VERBOSE == "true" ]; then
echo "Installing plugin laser..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing plugin laser..."
fi
sudo ldconfig
ldconfig
ctest -j$CORES
else
if [ $VERBOSE == "true" ]; then
......@@ -353,7 +351,7 @@ if [ $INSTALL_VISION == "y" ]; then
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D CMAKE_CXX_FLAGS="-fPIC -std=c++14" -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
make -j8
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Cloning plugin vision..."
......@@ -374,7 +372,7 @@ if [ $INSTALL_VISION == "y" ]; then
if [ $VERBOSE == "true" ]; then
echo "Installing plugin vision..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing plugin vision..."
......@@ -402,7 +400,7 @@ if [ $INSTALL_VISION == "y" ]; then
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES
ctest -j$CORES
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Cloning plugin apriltag..."
......@@ -423,7 +421,7 @@ if [ $INSTALL_VISION == "y" ]; then
if [ $VERBOSE == "true" ]; then
echo "Installing plugin apriltag..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing plugin apriltag..."
......@@ -465,7 +463,7 @@ if [ $INSTALL_IMU == "y" ]; then
if [ $VERBOSE == "true" ]; then
echo "Installing plugin bodydynamics..."
fi
sudo make install
make install
if [ $VERBOSE == "true" ]; then
echo "Testing plugin bodydynamics..."
......
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