Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL - MacOS / Xcode installation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL - MacOS / Xcode installation


Chronological Thread 
  • From: "J. Scheurritch" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL - MacOS / Xcode installation
  • Date: Tue, 25 Aug 2020 15:10:25 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:ath/wxIMqxAkglXaR9mcpTZWNBhigK39O0sv0rFitYgfK/3xwZ3uMQTl6Ol3ixeRBMOHsqwC0rCO+PyxEUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe8bL9oMRm6sxndusYZjIZmN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gr9FrhKvpxJxwIDab4+aO/V8YqzQZskVSXZbU8tLSyBMDIGxYo0SBOQBJ+ZYqIz9qkMAoRW6HwWnGf7hxSNIhnDowK06yf4hEQDa3AM8H9ICvmnfodLwNKcPX+C10KjIwSjeY/5N1zby9pPHfgo8rv6SRL99d9faxkYzGQ3flFqQtZDlMC2P1uQLq2WW7uttWOyuhmAppQ9/rTmiy8UjhIfJm44Y1kzI+DlkzYooIdC1VE12bN+qHZZTty+UN4t7T8I/Tm9opSs3xKMLtJimdyYEz5QnwgTQa/2Bc4WQ/h3jW/yeITNiiHJiYrK/iA6+8VS9yuLhSMa01FhKrjZfntnKsnAA0QHY5MufSvZl4EutxCiD2xrN5u1aI004j7fXJpw7zrIti5YfqUfOEyzslEnrjKKaaF8o9vWr5unneLnquIGQO5JyhwrjL6ougtawAeE7PAgWR2aU5/i81bPk/U3jQ7VHlv47n6rDvJzHJckXuLS1DxJW34sj8RqzESmq3MkekHIaNlxKYgiHgJLsO1zWIPD3E/O/g1O0nTduwPDGI6HhDo/DL3fdi7jtZ6ty5FBExAoyy9BQ+Y5UB6kfLP7uREP9rsLUAgE7PgCu3urqCs9x2p4DVW6XB6+WKqLSsVuG5uI1JOmMYZcYuDPgK/gr+/7ujGI1lUIGcKinw5QYc2q0Eel4LEmBe3rjns8BEXsWvgo5VOHllFKCXiRXZ3qrQq085yo7B567DYfYXYCgm6eB3Se+Hp1OfG9KEFGMEXHyd4WFQfgAciySItUy2gADALOuQotk2RC1vxLh0JJmKPDV82sWr8HNzt9wsqfx01kJ/jx5Et6H0n2GTys8ymYVSSM3hflXvkF3jFuOh/sry8dEHMBesqsaGjwxMoTRmrQjWoLCHznZd9LMc26IB9CvADU/VNU0k40Rbkw7F9jw10mejRrvOKcckvmwPLJx8q/Y2CGqdcN61mqAy6QryVUrEJMWaT+Ww5Vn/g2WPLbn1l2Dnvb4aqkWmiLApj+O



i am trying to use cgal in one of my Xcode projects. 

I made many attempts now since the last three days, but i always end up having many compilation errors, which are really hard to understand…


First i installed CGAL as stated here: https://doc.cgal.org/latest/Manual/usage.html by using home-brew:

brew install cgal

which worked perfectly and didn’t show any errors.

As i already set the user search paths to /usr/local/include and /usr/local/lib, i could directly use the CGAL headers in my project.
After trying some basic functions with the library i tried to do follow the surface reconstruction tutorial:


I figured out, that some functions would work and some not, for example:

CGAL::compute_average_spacing<CGAL::Sequential_tag> (points, 6);

would work perfectly with a list of points, but: 
CGAL::jet_smooth_point_set<CGAL::Sequential_tag> (points, 24); would result in many errors like: “Static_assert failed due to requirement’!(boost::is_same<CGAL::GetSvdTraits…." or: “No matching function for call to object of type ‘Monge_jet_fitting (aka ‘Monge_via_jet_fitting…..”


I followed this tutorial on installing CGAL in Xcode: https://3d.bk.tudelft.nl/ken/en/2016/03/16/using-cgal-and-xcode.html but since CGAL is header only those libraries don’t exist anymore. 
To solve that problem, I could build CGAL with using cmake and add the missing libraries from that tutorial to my project, but this would not change anything.


If i download the examples folder and try to build with cmake, everything works perfectly. The only problem is, that i don’t know what is missing for my Xcode project to use CGAL functions.

CGAL now requies --std=c++14


in the clang commandsline.





Archive powered by MHonArc 2.6.19+.

Top of Page