Building CGAL 3.3.1 on (10.5) Leopard

2009
04.29


Not an exercise for the faint of heart. In fact this applies to using it in your programs as well. While I managed to build the libs, I never managed to build the demos that rely on Qt.
 

  • Download the mac distribution from CGAL portal.
  • Prior to installing CGAL you need to have a few prerequisites on your system: boost, GMP, MPFR, Qt (3 didn’t manage to get it working with 4)
  • It is easiest to use macports to get these. After downloading and installing macports install the libraries as follows
    sudo port install boost
    sudo port install GMP
    sudo port install MPFR
    sudo port install qt3-mac
  • You may also wish to install qt4 by invoking
    sudo port install qt4-mac-devel
  • Open your terminal window and cd to CGAL home directory
  • Copy (rename) boost program_options library file so the installer picks it up by going into /opt/local/lib and type
    cp libboost_program_options-mt.a libboost_program_options.a
  • Invoke ./instal_cgal -i to enter interactive mode of their installer
  • Provide the paths the installer cannot find automatically (they are all in /opt/local/include and /opt/local/lib)
  • Before building examples (from examples directory invoke make) don’t forget to set an environment varible
    export CGAL_MAKEFILE=<path_to_CGAL-3.3.1>/make/makefile_i386_Darwin-9.6_g++-4.0.1
  •  

     

    Tags:

    Your Reply

    You must be logged in to post a comment.