Install on Debian sid

19 views
Skip to first unread message

dfgood...@googlemail.com

unread,
Feb 9, 2013, 7:01:14 AM2/9/13
to cgal-bindi...@googlegroups.com
I have read the CGAL bindings installation instructions and I getting all manner of errors when I run cmake.

I suspect that the problem is step two, where it tells me to choose between in-source of out-of-source, 
but then does not tell me what to do having made the decision.

I have got the debian source package (currently 4.0.2) in /usr/src/cgal-4.0.2, and I have the bindings 
checked out in ~/git/cgal-bindings.

The example given at the bottom of the page does not seem to do anything with the result of the choice in
stage 2.

The errors I get are complaining about missing directories (under SWIG_CGAL), and then when I created
these manually it started to complain that each directory did not have a CMakeList.txt in it.  I guess this
is because I did not tell cmake where the source was, but I can not see a way to do it.

Thanks in advance.

David

Philipp Moeller

unread,
Feb 9, 2013, 7:15:28 AM2/9/13
to dfgood...@googlemail.com, cgal-bindi...@googlegroups.com
dfgood...@googlemail.com writes:

> I have read the CGAL bindings installation instructions and I getting all
> manner of errors when I run cmake.
>
> I suspect that the problem is step two, where it tells me to choose between
> in-source of out-of-source,
> but then does not tell me what to do having made the decision.

It simply means if you run CMake inside or outside of the source-tree.

# in-source
$ cd /path/to/cgal/bindings
$ cmake . # clutter my source-dir with build files

# out-of-source (recommended)
$ cd /path/to/cgal/bindings
$ mkdir build && cd build
$ cmake .. # notice the two dots

The "build" directory could be anywhere but most people make it a
sub-directory of the source-tree.

>
>
> I have got the debian source package (currently 4.0.2) in
> /usr/src/cgal-4.0.2, and I have the bindings
> checked out in ~/git/cgal-bindings.

The location of the CGAL package should be automatically detected. I
don't know if you actually need the src package, as most of the code is
in the headers anyway. The normal should be sufficient.

David Goodenough

unread,
Feb 9, 2013, 7:25:23 AM2/9/13
to Philipp Moeller, cgal-bindi...@googlegroups.com

Thank you, that fixed it.

 

It might be worth updating the installation instructions to reflect this.

The way it it shown the cmake command should be:-

 

cmake ../.. -DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=OFF -DJAVA_OUTDIR_PREFIX=../../examples/java ../..

 

(obviously all on one line).

 

David

Reply all
Reply to author
Forward
0 new messages