Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Patch against CGAL-3.6, to fix compilation problems with Boost-1.42

Subject: CGAL users discussion list

List archive

[cgal-discuss] Patch against CGAL-3.6, to fix compilation problems with Boost-1.42


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: [cgal-discuss] Patch against CGAL-3.6, to fix compilation problems with Boost-1.42
  • Date: Tue, 23 Mar 2010 11:07:54 +0100
  • Organization: GeometryFactory

On Monday 22 March 2010 20:59:56 Laurent Rineau (GeometryFactory) wrote:
> Le Lundi 22 Mars 2010 19:46:41, Edoardo Milotti a écrit :
> > I use CMake 2.8.0, Boost 1.42.0 (installed with MacPorts on MacOS X
> > 10.6.2), and I just installed CGAL 3.6. It seems that BOOST_VERSION is
> > not properly set by CMake, although CMake detects the correct Boost
> > version. This is part of the CMake output:
> >
> > -- Boost version: 1.42.0
> > -- Found the following Boost libraries:
> > -- thread
> > -- Boost include: /opt/local/include
> > -- Boost libraries:
> > optimized;/opt/local/lib/libboost_thread-mt.dylib;debug;/opt/local/lib/li
> > b boost_thread-mt-d.dylib -- Boost definitions:
> > -- USING BOOST_VERSION = '1.42.0'
> >
> > The compile phase went smoothly and then I compiled the examples with
> > "make examples". Here the procedure halted because it could not find
> > boost/property_map.hpp. However the header files contain the preprocessor
> > statements
> >
> > #if BOOST_VERSION >= 104000
> > #include <boost/property_map/property_map.hpp>
> > #else
> > #include <boost/property_map.hpp>
> > #endif
> >
> > and <boost/property_map/property_map.hpp> does exist in my installation.
> > So I commented out part of the preprocessor code
> >
> > //#if BOOST_VERSION >= 104000
> > #include <boost/property_map/property_map.hpp>
> > //#else
> > //#include <boost/property_map.hpp>
> > //#endif
> >
> > wherever needed, and this fixed the problem.
>
> I agree there could be a compilation problem in CGAL with Boost-1.42.
>
> Which files have you modified?

Here is a patch against CGAL-3.6. I will probably have to release a
CGAL-3.6.1
very soon.

Index: include/CGAL/Arr_face_map.h
===================================================================
--- include/CGAL/Arr_face_map.h (revision 54860)
+++ include/CGAL/Arr_face_map.h (revision 54861)
@@ -24,6 +24,7 @@
*/

#include <CGAL/Unique_hash_map.h>
+#include <boost/version.hpp>
#if BOOST_VERSION >= 104000
#include <boost/property_map/property_map.hpp>
#else
Index: include/CGAL/Arr_vertex_map.h
===================================================================
--- include/CGAL/Arr_vertex_map.h (revision 54860)
+++ include/CGAL/Arr_vertex_map.h (revision 54861)
@@ -26,6 +26,7 @@
*/

#include <CGAL/Unique_hash_map.h>
+#include <boost/version.hpp>
#if BOOST_VERSION >= 104000
#include <boost/property_map/property_map.hpp>
#else

--
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