Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] building error on Mac 10.7

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] building error on Mac 10.7


Chronological Thread 
  • From: Marius Kintel <>
  • To:
  • Subject: Re: [cgal-discuss] building error on Mac 10.7
  • Date: Fri, 29 Mar 2013 13:08:54 -0400

On 2013-03-29, at 12:05 , Shiyuan wrote:

> 1. `sudo port install cgal` gives the follow errors. It looks like that
> cgal doesn't work with boost
> @1.53.0_1+no_single+no_static+openmpi+python27which is installed in my mac.
> opt/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse
> error at "BOOST_JOIN"
>
This is a bug in moc from Qt-4.8.4 combined with boost-1.53, see
https://bugreports.qt-project.org/browse/QTBUG-22829

I work around this by inserting an #ifndef Q_MOC_RUN in various places in the
CGAL demo code (but it's annoying).

> 2. I also try to build cgal from source. It seems to be able to build the
> library, but when I try to build the examples, I got the following error:
>
> /Users/sgu/softwares/CGAL-4.1/examples/Mesh_3/../../include/CGAL/Triangulation_ds_cell_base_3.h:51:7:
> error: array initializer must be
> an initializer list
> : V((Vertex_handle[4]) {v0, v1, v2, v3} ) {}
> ^
>
Could you post your cmake command-line and what it outputs?
I can do this on 10.7 by more or less just doing:
export CC=clang
export CXX=clang++

-Marius





Archive powered by MHonArc 2.6.18.

Top of Page