From c352b3571605f04a4651788200ad6a0e392a3b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Thu, 20 Jan 2022 09:39:30 +0100 Subject: [PATCH] removed all sudo --- README.md | 5 +++++ install_wolf.sh | 44 +++++++++++++++++++++----------------------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index e03c930..0116b6f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # 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 diff --git a/install_wolf.sh b/install_wolf.sh index 91a293c..00af512 100755 --- a/install_wolf.sh +++ b/install_wolf.sh @@ -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..." -- GitLab