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

git clone --depth 1 -b in some deps

parent 93d52d0f
No related branches found
No related tags found
No related merge requests found
...@@ -186,10 +186,8 @@ fi ...@@ -186,10 +186,8 @@ fi
# ceres # ceres
func_echo "Installing ceres 2.0 via source..." func_echo "Installing ceres 2.0 via source..."
cd $DEPS_PATH cd $DEPS_PATH
git clone https://ceres-solver.googlesource.com/ceres-solver git clone --depth 1 -b 2.0.0 https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver cd ceres-solver
git checkout 2.0
git pull
mkdir -p build && cd build mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$CORES make -j$CORES
...@@ -199,10 +197,8 @@ func_make_install ...@@ -199,10 +197,8 @@ func_make_install
# spdlog # spdlog
func_echo "Installing spdlog 0.17 via source..." func_echo "Installing spdlog 0.17 via source..."
cd $DEPS_PATH cd $DEPS_PATH
git clone https://github.com/gabime/spdlog.git git clone --depth 1 -b v0.17.0 https://github.com/gabime/spdlog.git
cd spdlog cd spdlog
git checkout v0.17.0
git pull
mkdir -p build && cd build mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fPIC" .. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fPIC" ..
make -j$CORES make -j$CORES
...@@ -228,7 +224,6 @@ func_echo "Cloning wolf core..." ...@@ -228,7 +224,6 @@ func_echo "Cloning wolf core..."
cd $WOLF_PATH cd $WOLF_PATH
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/wolf.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/wolf.git
cd wolf cd wolf
git pull
func_echo "Compiling wolf core..." func_echo "Compiling wolf core..."
mkdir -p build && cd build mkdir -p build && cd build
...@@ -253,7 +248,6 @@ if [ $INSTALL_IMU == "y" ]; then ...@@ -253,7 +248,6 @@ if [ $INSTALL_IMU == "y" ]; then
cd $WOLF_PATH cd $WOLF_PATH
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git
cd imu cd imu
git pull
func_echo "Compiling plugin imu..." func_echo "Compiling plugin imu..."
mkdir -p build && cd build mkdir -p build && cd build
...@@ -291,7 +285,6 @@ if [ $INSTALL_GNSS == "y" ]; then ...@@ -291,7 +285,6 @@ if [ $INSTALL_GNSS == "y" ]; then
cd $WOLF_PATH cd $WOLF_PATH
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/gnss.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/gnss.git
cd gnss cd gnss
git pull
func_echo "Compiling plugin gnss..." func_echo "Compiling plugin gnss..."
mkdir -p build && cd build mkdir -p build && cd build
...@@ -374,7 +367,6 @@ if [ $INSTALL_LASER == "y" ]; then ...@@ -374,7 +367,6 @@ if [ $INSTALL_LASER == "y" ]; then
ldconfig ldconfig
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/laser.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/laser.git
cd laser cd laser
git pull
func_echo "Compiling plugin laser..." func_echo "Compiling plugin laser..."
mkdir -p build && cd build mkdir -p build && cd build
...@@ -406,10 +398,7 @@ if [ $INSTALL_VISION == "y" ]; then ...@@ -406,10 +398,7 @@ if [ $INSTALL_VISION == "y" ]; then
unzip temp.zip unzip temp.zip
rm temp.zip rm temp.zip
cd opencv-3.3.0 cd opencv-3.3.0
git clone https://github.com/opencv/opencv_contrib.git git clone --depth 1 -b 3.3.0 https://github.com/opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.3.0
cd ..
mkdir build mkdir build
cd build 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 .. 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 ..
...@@ -420,7 +409,6 @@ if [ $INSTALL_VISION == "y" ]; then ...@@ -420,7 +409,6 @@ if [ $INSTALL_VISION == "y" ]; then
cd $WOLF_PATH cd $WOLF_PATH
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/vision.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/vision.git
cd vision cd vision
git pull
func_echo "Compiling plugin vision..." func_echo "Compiling plugin vision..."
mkdir -p build && cd build mkdir -p build && cd build
...@@ -458,7 +446,6 @@ if [ $INSTALL_VISION == "y" ]; then ...@@ -458,7 +446,6 @@ if [ $INSTALL_VISION == "y" ]; then
cd $WOLF_PATH cd $WOLF_PATH
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/apriltag.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/apriltag.git
cd apriltag cd apriltag
git pull
func_echo "Compiling plugin apriltag..." func_echo "Compiling plugin apriltag..."
mkdir -p build && cd build mkdir -p build && cd build
...@@ -489,7 +476,6 @@ if [ $INSTALL_IMU == "y" ]; then ...@@ -489,7 +476,6 @@ if [ $INSTALL_IMU == "y" ]; then
cd $WOLF_PATH cd $WOLF_PATH
git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/bodydynamics.git git clone -b master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/bodydynamics.git
cd bodydynamics cd bodydynamics
git pull
func_echo "Compiling plugin bodydynamics..." func_echo "Compiling plugin bodydynamics..."
mkdir -p build && cd build mkdir -p build && cd build
......
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