Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac
  • Date: Mon, 23 Apr 2018 12:03:52 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:YTc1whNwNPY12ATthZ8l6mtUPXoX/o7sNwtQ0KIMzox0I/36rarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkHKTA37W/ZhM93jK1ZrhKuqBNxzJLPbYGJLfpzZL/Rcc8GSWZcWMtaSixPApm7b4sKF+cNM+BWoJPgp1sUsxS+AxWsD/7zxD9JgH/5w7c10/k8Gg3CwgEuHs4DvnLPoNv0KqgSVuW1w7fUzTXZb/JY2S3y55TUchAmu/GNXbd8fcTMwkQoEwPKlEiQqZb7MDOTyuQBqXKb7+tmVe2xkWEnthp8rSSgxsg2jonFnIUVykrL9Shgxos+ONO2SEl+YdG+EZtQsTmXOJd5Qsw4R2FkoiE6yqcJuZKjcygF1pMnxxvBZPybaYiJ4hzjW/yNLjdkg3JlYrK+iwyu/kinz+3xUNS/3lVSriddj9XBtHMA2wbd58SZUPdx41ut1DWV2wzO6OxIP1g4mbffJpMv2LI8i4YfvEvZEiL4hUn6lrKaelk59uWu9u/peK/ppoWGOI9xkgz+Mrohmsi4AekgNgUCRW2b+eOh2LH5+E32WrRKjvkvnqnerZDaOd4XpqmnAw9VyIoj7QiwDyu+3NQZm3kIMk5FdQqag4XrOFzCOv71Aemlj1ixjDtmxOrKMqDjD5nTNnTDla3ufbd5605S0gozytVf6opQCr4bPfLzQFH+tNrEDhMjKQy0wuDnB8tn2YMDQm+AHqCZP7nWsVOS4eIvOeaMaJcPuDnhM/gl++LujXghlFABcqmmx58XZGmlEfRnOEWWfWfsgswaEWoRpQo/TOnqiEWYXjJJZnayWbg85jAhB468A4fDXNPlvLvU1yiyGthaZ3tNF0uXOXbubYSNHfkWOwyIJco02BgNSKKsTZNp7xCouQbng/pMAcPwvQIVspfuyMJkyeTYiRYo5H0+R5CZ2nyXQmdo2HkJQTI/wYh0rkV5jFCZ3v4r0LRjCdVP6qYRAU8BPpnGwrkiUoGgakf6Zt6MDW2ebJCjCDA1QMg2xoZWMU1yEtHkiQrMjXPzX+0l0oeTDZlxyZrymmDrLp8lmX3J3a1niEMpEJMWaD+Ww5Vn/g2WPLbn1kWUk6HwKfZNmivKrSGGxGuK+UZFTEh3T6WDW30DNBPb
  • Organization: GeometryFactory

Le Sunday, April 22, 2018 10:27:23 PM CEST Benjamin Bercovici a écrit :
> I am getting errors while compiling a piece of software that uses CGAL (see
> compiler trace below). This error arises using Apple’s Clang or
> a-built-from-source GCC 7.3.0.
>
> [ 2%] Building CXX object CMakeFiles/ASPEN.dir/source/ShapeBuilder.cpp.o
> In file included from
> /usr/local/include/CGAL/internal/boost/mutable_queue.hpp:27:0, from
> /usr/local/include/CGAL/Modifiable_priority_queue.h:27, from
> /usr/local/include/CGAL/Surface_mesh_simplification/Detail/Common.h:46,
> from
> /usr/local/include/CGAL/Surface_mesh_simplification/Detail/Edge_collapse.h
> :25, from
> /usr/local/include/CGAL/Surface_mesh_simplification/edge_collapse.h:28,
> from
> /Users/bbercovici/GDrive/CUBoulder/Research/code/ASPEN_gui_less/lib/extern
> al/CGAL_interface/include/CGAL_interface.hpp:21, from
> /Users/bbercovici/GDrive/CUBoulder/Research/code/ASPEN_gui_less/lib/source
> /ShapeBuilder.cpp:21:
> /usr/local/include/CGAL/internal/boost/array_binary_tree.hpp:54:28: error:
> expected template-name before '<' token
> : ::boost::iterator<std::forward_iterator_tag,
>
> ^
> /usr/local/include/CGAL/internal/boost/array_binary_tree.hpp:54:28: error:
> expected '{' before '<' token
> /usr/local/include/CGAL/internal/boost/array_binary_tree.hpp:54:28: error:
> expected unqualified-id before '<' token make[2]: ***
> [CMakeFiles/ASPEN.dir/source/ShapeBuilder.cpp.o] Error 1 make[1]: ***
> [CMakeFiles/ASPEN.dir/all] Error 2
> make: *** [all] Error 2
>
>
> I’m using CGAL 4.11.1, downloaded through Homebrew . The same error was
> raised using the bleeding-edge CGAL 4.13 (that I compiled from source
> since it is not on Homebrew yet).
>
> I believe a Boost upgrade may be the cause for this, based on when the last
> upgrade was applied. I’m using Boost 1.67.0_1 , also downloaded from
> Homebrew a couple days ago. I am certain I was able to compile without
> trouble until I got the update, hence my suspicion that something is wrong
> with boost.
>
> Any advice ?

Hi Benjamin,

It seems there is a missing `#include` in that file of CGAL.

As a workaround, you can add a

#include <boost/iterator.hpp>

in the file

ASPEN_gui_less/lib/external/CGAL_interface/include/CGAL_interface.hpp

before its lines 21. That should fix your issue. Let us know.

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

Top of Page