CGAL在MacOS系统上的安装

win的参考1:https://www.cnblogs.com/arxive/p/11198513.html
参考2: https://www.cnblogs.com/Key-Ky/p/3996309.html
官网: https://www.cgal.org/download/macosx.html
[https://www.cgal.org/download.html]
方法1:终端输入(就它了,最方便)

brew install cgal

方法2:源码安装
CGAL是一个计算图形库,安装CGAL的方法可以参考:http://doc.cgal.org/latest/Manual/installation.html
我的安装方法是:(首先要先装上cmake)

brew install gmp
brew install mpfr
cd CGAL-4.4 #go to the CGAL directory
cmake #configure CGAL
make #build the CGAL library
make install #将库放入到/usr/local/lib中,将头文件放到/usr/local/include中

发布了52 篇原创文章 · 获赞 6 · 访问量 5132

猜你喜欢

转载自blog.csdn.net/weixin_44723106/article/details/104679729