Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: libboost dependencies in Ubuntu 11.04

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: libboost dependencies in Ubuntu 11.04


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: libboost dependencies in Ubuntu 11.04
  • Date: Mon, 22 Aug 2011 15:45:14 +0200
  • Organization: GeometryFactory

On lundi 22 août 2011 14:11:36 mm wrote:
> Amy Tabb wrote:
> > My opinion of how to fix your problem is to keep the newest version of
> > boost (at least 1.44), and then skip the Synaptic package manager version
> > of cgal and instead build it from source. In the cmake dialog, you can
> > manually point to the specific version of boost that you have, but when I
> > have installed it on Ubuntu there was no need to alter the libraries
> > found by cmake.
> >
> > Then you'll have the most up to date version of boost with the most up to
> > date version of cgal, the only negative being some long download and
> > build times.
>
> Joachim Reichel wrote:
> > If you don't want to/can't do that yourself there seem to be two options:
> > 1) Build CGAL yourself from source, as recommended by Amy.
> > 2) Use a newer CGAL package from Ubuntu oneiric or Debian squeeze (CGAL
> > 3.8 / Boost 1.46).
>
> Hey Amy and Joachim, thanks for answering that fast! My response comes a
> bit late, but I was afk all weekend long.
>
> What both of you said makes total sense and I'd like to follow Amy's
> recommendation and compile CGAL from source and link against that.
> Unfortunately, it's not working. Setup is like this:
> 1) downloaded
> https://gforge.inria.fr/frs/download.php/28501/CGAL-3.8.tar.xz 2) unpacked
> and called cmake: only option changed is:
> CMAKE_INSTALL_PREFIX = /home/mm/.local/CGAL-3.8/
> as that's the place I keep my selfcompiled software.
> 3) open my project in cmake and set
> CGAL_DIR = /home/mm/.local/CGAL-3.8/lib/CGAL
> It's the only CGAL option and originally when I install CGAL through
> Synaptic, the folder /usr/lib/CGAL contains the same files, mostly *.cmake
> or *.in files.
> 4) compile my project and get error:
> /home/mm/code/src/cv/reflectance/illumestimators/gamutmapping/gamutmapping2
> destimator.cpp:14:64: fatal error:
> CGAL/Exact_predicates_inexact_constructions_kernel.h: No such file or
> directory
> compilation terminated.

Between steps 2 and 3, have you compiled CGAL libraries? Do you have a file
/home/mm/.local/CGAL-3.8/lib/CGAL/CGALConfig.cmake? What is the value of
variable CGAL_INCLUDE_DIRS in that file?

The CMake lines about in your CMakeLists.txt seem correct.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page