我关注了CGAL的网站。它告诉我可以使用命令安装它brew install cgal-qt5
.
但是我收到了以下错误消息:
Updating Homebrew...
Error: No available formula with the name "cgal-qt"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarity named formulae...
Error: No similarly named formula found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in tabs.
当我draw_triangulation_2.cpp
运行示例时,它有一个致命错误:
'CGAL/Qt/Basic_viewer_qt.h' file not found
我想这个结果是因为缺乏cgal-qt5
而产生的,但我无法修复它。我希望有人能帮助我。谢谢。
实际上这里的文档是错误的。这方面的 PR 从未被接受,关于 cgal on brew 的文档是在 PR 取消之前发布的。在brew上,您可以使用brew install cgal
安装cgal,但在集成此PR之前,您将不会在该软件包中拥有GUI元素。