Compiling a basic CGAL program in C++ on Mac OS X 10.7.2

陌路散爱 提交于 2019-12-01 00:28:23

Make CGAL3.9 work on Mac OS X 10.7.2 to run only CGAL examples(Demos will not run with this procedure)

  • Download src code from the website
    • Extract it in your home directory
    • Open Terminal and go to the folder CGAL3.9
    • run cmake-gui . (don’t forget the dot after a space in this command)
    • Configure : upper window will look red
    • un-mark CGAL-QT3 and CGAL-QT4 in the camke-gui upper window
    • Configure again
    • make
    • make install
    • Done!

To run demos:

  • Install QT4 then open Cmake-gui in CGAL src code (of CGAL src code)
    • Mark CGAL_QT4 in the cmake-gui upper window
    • Configure again
    • make
    • make install
    • Done!

Follow this link for further details and doubts: http://cgal-discuss.949826.n4.nabble.com/Compiling-a-basic-CGAL-program-in-C-on-Mac-OS-X-10-7-2-td4166413.html

Compilation Command To Cmake CGAL Code: cmake -DCGAL_DIR=/opt/local/lib/cmake

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!