From cb5bd56ef0dd9161096346f185b2c696a5b30bd2 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 16 Nov 2023 14:44:44 +0100 Subject: [PATCH] update install.sh Now almost all dependencies of the CGAL 3D demo are installed. Exceptions: ``` -- Missing optional packages: * LASLIB, A library for LIDAR I/O. Required for reading or writing LAS files. * SCIP, A solver for mixed integer programming. Can be used as a solver in the surface_reconstruction_plugin plugin. * OpenGR * libpointmatcher ``` --- .github/install.sh | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/install.sh b/.github/install.sh index 32b8552aa8f..8759748fa5e 100755 --- a/.github/install.sh +++ b/.github/install.sh @@ -1,11 +1,28 @@ #!/bin/bash + +set -e + sudo apt-get update -sudo apt-get install -y libmpfr-dev \ - libeigen3-dev qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev \ - libqt5svg5-dev qttools5-dev qttools5-dev-tools libboost-dev libinsighttoolkit4-dev zsh -#update cmake to 3.18.4 +sudo apt-get install -y \ + libmpfr-dev \ + libtbb-dev \ + libmetis-dev \ + libssh-dev \ + libeigen3-dev \ + qtbase5-dev libqt5sql5-sqlite libqt5opengl5-dev qtscript5-dev libqt5websockets5-dev \ + libqt5svg5-dev qttools5-dev qttools5-dev-tools \ + libboost-dev libboost-serialization-dev libboost-iostreams-dev libboost-filesystem-dev libboost-filesystem-dev \ + libvtk9-dev \ + libinsighttoolkit4-dev \ + libceres-dev \ + libglpk-dev \ + libopencv-dev \ + zsh + +#update CMake sudo apt purge --auto-remove cmake cd /tmp -wget https://cmake.org/files/v3.18/cmake-3.18.4-Linux-x86_64.sh -sudo sh cmake-3.18.4-Linux-x86_64.sh --skip-license --prefix=/usr/local -rm cmake-3.18.4-Linux-x86_64.sh +CMAKE_VER=$(curl --silent https://cmake.org/files/LatestRelease/cmake-latest-files-v1.json | jq -r .version.string) +wget https://cmake.org/files/LatestRelease/cmake-$CMAKE_VER-linux-x86_64.sh +sudo sh cmake-*.sh --skip-license --prefix=/usr/local +rm cmake-*.sh