Skip to content

Instantly share code, notes, and snippets.

@huyaoyu
Last active February 9, 2022 16:36
Show Gist options
  • Save huyaoyu/0dca69947e9f76e458fe8963b64cbe72 to your computer and use it in GitHub Desktop.
Save huyaoyu/0dca69947e9f76e458fe8963b64cbe72 to your computer and use it in GitHub Desktop.
Install dependencies for CGAL
#!/bin/bash
LIBRARIES_PATH=/home/$USER/Libraries/CGAL
sudo apt-get install -y
libgmp-dev libmpfr-dev \
libreadline-dev coinor-libipopt-dev \
libqt5svg5-dev libqt5script5 libqt5scripttools5 libqt5websockets5-dev qtscript5-dev \
glpk-utils libglpk-dev glpk-doc python-swiglpk
# libpointmatcher.
cd $LIBRARIES_PATH
git clone -b 1.0.7 git://github.com/ethz-asl/libnabo.git \
&& cd libnabo \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../ \
&& make -j6 \
&& sudo make install
cd $LIBRARIES_PATH
git clone -b 1.3.1 https://github.com/ethz-asl/libpointmatcher.git \
&& cd libpointmatcher \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../ \
&& make -j6 \
&& sudo make install
# SCIP. Need to copy the file first.
cd $LIBRARIES_PATH
tar -xzf scipoptsuite-6.0.2.tgz \
&& cd scipoptsuite-6.0.2 \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../ \
&& make -j6 \
&& suo make install
# CGAL.
cd $LIBRARIES_PATH \
&& mkdir install
git clone -b v5.4 --depth 1 https://github.com/CGAL/cgal.git \
&& cd cgal \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX=/home/$USER/Libraries/CGAL/install -DCMAKE_BUILD_TYPE=Release ../ \
&& make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment