Install CGAL in Ubuntu16&18
Published:
To install cgal in the latest Ubuntu, many tutorials pointed out to compile openResource by yourself. I tried to install all directly using apt install
or apt-get install
, it worked in Ubuntu 16.04. For Ubuntu 18.04, i thought it is same as before but it failed strangely. I will go on to make it.
Dependency Libraries
sudo apt-get install libboost-all-dev libgmp-dev libgmp3-dev libmpfr-dev geomview
sudo apt-get install freeglut3 freeglut3-dev
sudo apt-get install binutils-gold
sudo apt-get install libglew-dev
sudo apt-get install g++
sudo apt-get install mesa-common-dev
sudo apt-get install cmake build-essential
sudo apt-get install libeigen3-dev
sudo apt-get install libtbb-dev
sudo apt-get install libmetis-dev libmetis5
sudo apt-get install zlib1g-dev
Qt5
sudo apt-get install qt5-default qtscript5-dev libqt5opengl5-dev libqt5svg5-dev libcgal-qt5-dev libcgal-ipelets
***In ubuntu16***
sudo apt-get install libcgal11v5 libcgal-qt5-11
***In ubuntu18***
sudo apt-get install libcgal13 libcgal-qt5-13
LibQGLviewer
***In ubuntu16***
sudo apt-get install libqglviewer-dev libqglviewer2
***In ubuntu18***
sudo apt-get install libqglviewer-dev-qt5 libqglviewer2-qt5
Install CGAL
sudo apt-get install libcgal-dev libcgal-demo
mkdir $HOME/cgal && cd $HOME/cgal
tar xzf /usr/share/doc/libcgal-demo/examples.tar.gz
tar xzf /usr/share/doc/libcgal-demo/demo.tar.gz