Building CGAL filters - petteriTeikari/twoPhotonVessels GitHub Wiki

Building CGAL projects

add maybe a script later to do this automatically from Git clone

From the CGAL git clone

additional libraries that might not be found

sudo apt-get install libqglviewer-dev libmpfi-dev libipe-dev

and download OpenMesh (http://www.openmesh.org/), and install it from the source (extract, make build, cd build, cmake ../, make, sudo make install)

and Eigen3 (http://eigen.tuxfamily.org/)

Install with cmake / ccmake

See the: "Here is an example of how to build the library in Release:" for example with the Eigen3-flag:

cmake -DEIGEN3_INCLUDE_DIR=/usr/local/include/eigen3 -DCMAKE_BUILD_TYPE=Release ../..

make -j4 4 number of cores (you can use higher number as well) make examples make demos sudo make install

Bilateral Smoothing

Possible errors

Problem:

fatal error: CGAL/bilateral_smooth_point_set.h: No such file or directory

#include <CGAL/bilateral_smooth_point_set.h>

Solution: Do not use the apt-get install libcgal-dev option to install CGAL as apt-get remove libcgal-dev and re-install from the tarball (see above) fixed the problem.

OutlierRemoval

Possible errors

SDFRetrival

cd '$MAIN$/CGAL/SDFRetrival/'

cd build

cmake ../src

Possible errors

Problem:

fatal error: CGAL/mesh_segmentation.h: No such file or directory

#include <CGAL/mesh_segmentation.h>

Solution: Do not use the apt-get install libcgal-dev option to install CGAL as apt-get remove libcgal-dev and re-install from the tarball (see above) fixed the problem.

WLOP

Possible errors

Problem:

fatal error: CGAL/wlop_simplify_and_regularize_point_set.h: No such file or directory

#include <CGAL/wlop_simplify_and_regularize_point_set.h>

Solution: Do not use the apt-get install libcgal-dev option to install CGAL as apt-get remove libcgal-dev and re-install from the tarball (see above) fixed the problem.