Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] CGAL - MacOS / Xcode installation


Chronological Thread 
  • From: Jan Legleitner <>
  • To:
  • Subject: [cgal-discuss] CGAL - MacOS / Xcode installation
  • Date: Tue, 25 Aug 2020 14:31:58 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:n8Yq3hx3RyWOJ3fXCy+O+j09IxM/srCxBDY+r6Qd2+weIJqq85mqBkHD//Il1AaPAdyFrase06GK4ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVhTexe65+IAuqoQneucQbhZZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLulSwJNSM28HvPh8JwkK1Urw+vqR9xzYDKZ4+YL+Bxcr/Yfd4ARWpNQsRcWipcCY28dYsPCO8BMP5coYbnoVsFsB2wChejBOPr1DBIh2P23ask3OQ7DArL2wggEMwBsHTQstr1NbsSUearw6nS1DnMce5Z2Snm5YnGbB8uuuuAUq9ufsfIz0QkCgzKgEmKp4P/IzOVyvoCs3Kd7+d4Se+hhGEpph9+rzWx2MsglI3Eipwax1zZ9ih13YQ4K9O6RUN/btCoDJ9duiWHOoZ2Qc4sQ29ltSc0xLAHpJK2fy4Hw4kpyR7YbvyIaYmI4hT7WemNLjd3nnZldKi4hxao/kis0vH8VtSp31lUqipFnMXMumoL1xzX7MWMV/hz/l+51DqRygzf9PtILV4qmafZMZIt3749moAcvEjbGiL6hl/6ga2Ze0k+/uWk9f7rbqjiq5KdMYJ/lxvwPb40msOlBOQ1KggOUHaf+eS7zLDj+Er5QKhWjvEsnKjWrovVKd4GqaGnGwNV04Aj5AijDzq+ztgUgGcLIEhbdB6ZjYXlIUzCLfDiAfqwm1islS1kx/HCPr3vGJXNKX3Dna/lfblj5E5czBQ8zdFD55JSFL4BOuv/VVHsu9zGFRI4PRK7zP39BNpgyIwSQXiPDbOBMKPOrV+I4foiLPWDZIAPvDbxMuUq5//1jXAlhF8dZrKp0IAMaHG4G/RmO1+WbWDtgtcHC2cKvxAxQPbkiF2YAnZvYCO5UKs4oz06E4m7FpzrR4a3gbXH0j3oMIdRYzVkA1bENXrnc4iFR/EBcmrGJsJuljEFSb6sUcos2Q+GqwLwjbZqeLmHshYEvI7ugYAmr9bYkgs/oGQtXpatllqVRmQxpVsmAjo/3aRxu0t4mgWc3KI+j/EKTIUOtcMMaR8zMNvn98I/C932XVuaLNKOVUrgXdisRz08HIpon40+Jn1lEtDntSjtmjKwCu9HiLGBQpA5oPrR

Hello,


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.


At the moment i added the following libraries to my Xcode 11.6 project:

- libboost_thread-mt.dylib
- libgmp.10.dylib
- libmpfr.6.dylib


And made the following changed to the project settings:

- Always Search User Paths (Deprecated): YES
- Header search paths: /usr/local/include
- Library Search paths /usr/local/lib /usr/local/Cellar/gmp/6.2.0/lib /usr/local/Cellar/mpfr/4.1.0/lib /usr/local/Cellar/boost/1.73.0/lib
- User header search paths: /usr/local/include


I also already tried to generate a Xcode project with cmake:

cmake -G Xcode <CGAL-5.0.3 path>
which created a Xcode project, but only containing CMakeLists.txt files in each target??
nothing was build and i could also not select any application to run in the settings..
I did not use cmake in the past many times...


I hope this is the right email address and somebody is already using CGAL with Xcode!

Thank you very much!!

best regards
Jan









Archive powered by MHonArc 2.6.19+.

Top of Page