I have installed CGAL using macports. I run CMake on an example and its running fine. So I tried to create a new project and pasted the code I needed from an example. So I have not link the CGAL libraries yet and unable to run the code. Im not sure how to link it in the build settings. Hope someone can guide me through.
Im trying to run the envelope2.cpp.
You mentioned MacPorts but here are instructions for Homebrew. They should be pretty similar but you might need to alter some of the paths from /usr/local
to /opt/local
.
brew install cgal
Build Settings
tab.All
filter.header search
and you'll find the right setting:
Header Search Paths
+
button on the detail popup:
/usr/local/include/
.General
tab.Linked Frameworks and Libraries
section click the +
button:
Add Other...
button and you'll get an open file dialog.Option + /
to go to a specific a directory:
/usr/local/lib
, and click Go
.Command
while clicking to select more than one at at time):
libboost_thread-mt.dylib
libCGAL.dylib
libCGAL_Core.dylib
libgmp.dylib
libmpfr.dylib
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With