Skip to content

Commit dfd28d6

Browse files
committed
Merge branch 'hotfix/linux-install'
2 parents a2cb6ee + 40e215c commit dfd28d6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,21 @@ To compile val3dity yourself, you first need to install the following free libra
3838
1. [GEOS](http://trac.osgeo.org/geos/)
3939
1. [CMake](http://www.cmake.org)
4040

41-
Under macOS we suggest using [Homebrew](http://brew.sh/):
41+
Under macOS, it's super easy, we suggest using [Homebrew](http://brew.sh/):
4242

4343
$ brew install cgal --with-eigen
4444
$ brew install cmake
4545
$ brew install geos
4646

47-
Afterwards navigate to the folder with val3dity and run:
47+
Under Linux (at least Ubuntu), CGAL has to be compiled because apt-get doesn't give you a version with Eigen.
48+
Thus, in a nutshell,
49+
50+
1. download CGAL code
51+
1. install Eigen: `$ sudo apt-get install libeigen3-dev`
52+
1. compile CGAL by first activating the Eigen option in the CMake: `$ cmake . -DWITH_Eigen3=ON` or use [cmake-gui](https://cmake.org/runningcmake/) and activate it (option is called `WITH_Eigen3`)
53+
1. `export CGAL_DIR=/path/to/CGAL-4.1x` which will tell your shell to use that version of CGAL (thus more version of CGAL can be installed on the same computer; see that [handy manual](https://github.com/CGAL/cgal/wiki/Branch-Build)
54+
55+
To compile and run val3dity (from the val3dity folder):
4856

4957
$ mkdir build
5058
$ cd build

0 commit comments

Comments
 (0)