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: Jan Legleitner <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL - MacOS / Xcode installation
  • Date: Wed, 26 Aug 2020 16:31:59 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:NwpDnxxuD5w2g/bXCy+O+j09IxM/srCxBDY+r6Qd0uoVLPad9pjvdHbS+e9qxAeQG9mCtbQd0bCd7PyocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTuwbalvIBmoswnducsbjIR/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF+jL5Urh2uqBJizYDUbp+bO/h9cK3aZt4aWXNBXsNNWyxBHo+xbY0CBPcBM+ZCqIn9okMDox+kCgmqGejhzCFHhnDy3aIk0uQhDQfG0xI6H9kTt3nUqMv6NKgWUe+rzanI0TPDYO1M2Tvk9ofHbw4hrOqCXL1uasXd01QgGB3cg1iWtIfqMC+b2P4XvGiH8+pvS/ivi2g/pg1svjShyMchh43JiIwaxV3J6yR0zZs1KNCkSEB2ZdGpHYdNuyybOYZ7QMMvTW9ntig0ybALp5q2cSgUxZklxhPSbeGMfYaP4hLmTumRIDF4iWp5eLKiiBey/1Kvyuj9Vsmw0FdGtC1FksPDtnwVyxPT5dKISv9n8kemwzaP2Bjf6v1ZIU8pi6XbL5AhwqIqmpoVtUTPBi72mEPsjK+XbEoo4Oao6/7hb777pZGcL5d5hh/jPqksgMCyA/o0PhITU2Wf5+iwzr/u8E7hTLhIjPA6iLfVvI7AKcgFpqO1HhVZ3pg95xqjCTqtzc4WkmMdLF1ffRKKl4jpNE/KIPD/Ffq/hlOskCp3x/zcMLzuHI7CImLen7j/Zbp96khcxxQvzd1H+Z5YF7MMLOjxV0PvrtDUExs0PxKuz+vlC9hxzoYeVniOAq+dPqPSq1iI5uc3LumIeoAVtzL9JOYk5/7yi382h0UdcbC30pQKdnC1BfpnLFuCbnb2n9gOD38GvhAiQ+zylF2CTTlTam6uUKIz/D47DJuqAprCRoC2nLOBwTy7HoZNa2BdClGMFG/oeJ+eV/cNbiKSOM5hnSYeWbivUY9ynSyorxLwnrp7MvLPqGpfroPmzNEz5uvJlBh0+yYzFNWYy2jKTmd6mSQDSDYymax+ukdg0UzQ7K5jnvZkGMxPsvNVTh8hZ9mb1P1/E9m0WwTbf97PRkzhWcSjGTh2T9Q/xJgFbE95XtmjlRvexDH5P7hAnLOCANk487nXwmPqD8d70XfPkqc73Hc8Rc4aF2Sgzopy+AzeBpLPnl/Rw6KneqAR3TLL+X3GwGaQlF5VWkh8XPOWDjgkekLKoIGhtQv5RLi0BOF/a1oT+Yu5MqJPL+bRoxBDTfbnNs7ZZjLjhGq6QxqFlOrVMNjaPl4F1SCYM3Aq1hgJ9CbUKgU0QCus8TqHUW5eUGn3akapytFQ7XO2SkhtlFOPaFB9kaW48FgZiK7ERg==

Hello Sebastien,

thank you very much for the information.

After i found out how “CGAL_EIGEN3_ENABLED" works, i just needed to include
"/usr/local/include/Eigen3“ to the header search paths of Xcode
and now everything works!!! thank you very much!

CGAL searches directly in Eigen/ for headers, but home-brew installs eigen in
“Eigen3” i think this is why it did not work at first.

best regards
Jan


> On 26. Aug 2020, at 07:28, Sebastien Loriot (GeometryFactory)
> ( via cgal-discuss Mailing List)
> <> wrote:
>
> I guess you are missing Eigen.
> http://eigen.tuxfamily.org/index.php?title=Main_Page
>
> If Eigen is not available then the jet function requires you to manually
> give a svd traits:
>
> https://doc.cgal.org/latest/Point_set_processing_3/group__PkgPointSetProcessing3Algorithms.html#ga549402c0a8a8b6b71875181e93961521
>
>
> Best,
>
> Sebastien.
>
> On 8/25/20 2:31 PM, Jan Legleitner wrote:
>> 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
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://sympa.inria.fr/sympa/info/cgal-discuss
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>




Archive powered by MHonArc 2.6.19+.

Top of Page