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: Pratyush Pranav <>
- 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 20:52:37 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:8ytK7xTqDwOrUEEkD+w8SkKj09psv+yvbD5Q0YIujvd0So/mwa6zZBeN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHLhcN/kaxVrhyhqQJ9zIDXZ4+YL+Bxcr/Yfd4ARWpNQsRcWipcCY28dYsPCO8BMP5CoYnnvVQOsRu/BRS3BOPv1zRGnGX20rc80+s7DwHNwQstH8oUsHvOsNX0NLoSUOGrw6TTwjXDaulZ2Tb56ITSbh8hpvSMUKt2fMHMx0cvEAbFgU+RqYzjJz6V1+INs3Ka7+V6T+6vhXQnpxltrTig3MgsjpPFhoUPylDL7Sl23Ic1JcakR058e9KrDJxQtySCO4t5XMwiRGRotzgmyr0cuZ+7cjIFx4g7xx7YcfyGc5KE7Q7kVOaUJzpzmXFreKqnihqs7UStzvfwW8q03VpQsyZJjNrBumoQ2xHR9MSLUuVx8lqj1DqVyQzf9/tILV4omafaMZIszLg9nYcJv0vZBC/5gkD2gbeWdko6/uio7PzqYrD8qZ+dM494kw//Mr4ylsCmD+Q0LwoDU3aB9eSz073j+kL5QLFUgfEsjqbZt5XaKdwapq6/HQBVzp4u5wijAzqiytgVnnkKIEhYdB6ZjIXlIUzCLfLmAfunhlSjijZrx/TIPr37BZXNK2DOkK/7fbln905dyBczzNFB6J9PBbEBJej8Wk71tNDCEhA5NAm0z/79CNphzoMeRX6PAqiBPazOvl+H/OYvL/CRa48UozbyN+Ul5+X1jXIigl8cfayp3YMNZ3yiH/RmJV+ZYXv2jdsbH2cKpFl2cerxlVfXUSJPf23gGOUn9zQjAcSnC53CT8ajmvuazSKjF9pXYG5BTVuDGHOte4SfUOoXc3GuJZpqnTUAELSgUIQ8zgqGtQngyrMhIPCH1DcfsMfbztFp9vDIlVkK7zVyBtrVh3mXRn1lg3EFbzAz1aF750d6zwHQguBDn/VEGIkLtLtyWQAgOMuElr0oO5XJQgvEO+yxZhOjS9SiDys2S4tokdALakd5Xd6li0Kahnb4M/ouj7WOQacM3OfExXGofpRyzn/H0O8qiFx0GpISZ13jvbZ28k3oP6CMk0idkPz0J6EV3SqI633biGTX4xseXwl3XqHIG3sYYxmOoA==
this is possibly because your boost or some other prerequisite is compiled with some other version of clang… there is a version clash in linking libraries and even before possibly..
Pratyush
Actually this is not CGAL’s fault. I compiled CGAL with the default clang but was attempting to build my library with GCC 7.3.Compiling my library with clang works like a charm.thanks, that removed the compile error.However I am now getting linking errors:Undefined symbols for architecture x86_64:"CGAL::get_mode(std::basic_ios<char, std::char_traits<char> >&)", referenced from:std::basic_ostream<char, std::char_traits<char> >& CGAL::insert<CGAL::Epick>(std::basic_ostream<char, std::char_traits<char> >&, CGAL::Point_3<CGAL::Epick> const&, CGAL::Cartesian_tag const&) in CGAL_interface.cpp.old: symbol(s) not found for architecture x86_64I had a look at the libraries linked at the end of the compile job, and I could only find one related to CGAL :/usr/local/lib/libCGAL.13.0.1.dylibThere are a few other symlinks to CGAL libraries in /usr/local/lib:<Screen Shot 2018-04-23 at 08.17.02.png>Could this linker error be explained by the fact that these other .dylib are not included?my cmake lists looks like this:# CMakeLists.txt………...# Find CGALfind_package(CGAL REQUIRED)include( ${CGAL_USE_FILE} )include( CGAL_CreateSingleSourceCGALProgram )set(library_dependencies…${CGAL_LIBRARIES}${CGAL_3RD_PARTY_LIBRARIES}….)target_link_libraries(${LIB_NAME} ${library_dependencies})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://secure-web.cisco.com/1K985_KCWrXn7O7YUsZu8-QyfwjwB-GqF0-hWQfqx0V4_VpGqrOBeKOlVsPI7ma9Oeo8lryDhUYGX11bjnep3UCnTcQf9y2WHhTjt6TwTZ3qWv5Up_kSH2aawq0ORSFdufg21Z-iW81lMDVQ7ptbafQftxigjTCNCA_xNlyGpAK7yJzridj25PJ2_WHx8i7btS5vrETiYph9xSJ9DY1MwK044Iv2qXDoSTbgDr6px4asA3cGNgMJEwt922GRSTUxdbrovkR9ETwFyCoem7ILxelap9IjCL5Abh-fkLXfXohWNhvPYRhdlRHTYE1G13kXVDCBrzb6s8ZCAE1Z1WtYSz7Oh7985cZl3IURLVrn4XqHmquK7V8hm5ccQwyp29MwQUrH7Q1gwBjT9tLSBmwTZRB0uhr0ze7UOaJhxkqp7K_9cMzhqZlQcwir3u1OzLKazGft_4vyeYsKh6J4UmLi0dg/http%3A%2F%2Fwww.geometryfactory.com%2F
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Benjamin Bercovici, 04/22/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Laurent Rineau (CGAL/GeometryFactory), 04/23/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Benjamin Bercovici, 04/23/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Benjamin Bercovici, 04/23/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Pratyush Pranav, 04/23/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Benjamin Bercovici, 04/23/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Benjamin Bercovici, 04/23/2018
- Re: [cgal-discuss] Can't compile CGAL application after upgrading to boost 1.67.0_1 on Mac, Laurent Rineau (CGAL/GeometryFactory), 04/23/2018
Archive powered by MHonArc 2.6.18.