Compilation sur un mac

  • Installer Xcode depuis le site d’apple
  • Installer Qt depuis le site de nokia
  • Installer macport depuis le site de macport
  • Installer libQGLViewer depuis le site de libQGLViewer
    • tar -xzf libQGLViewer-2.3.8.tar.gz
    • cd libQGLViewer-2.3.8/QGLViewer
    • qmake -spec macx-g++
    • make
    • sudo make install
  • Avec port
    • sudo port selfupdate
    • sudo port install cmake
    • sudo port install boost (installer boost prend plusieurs heures)
    • sudo port install mpfr
  • Installer CGAL 4.3
    • Récupérer le tarball sur le site de la forge CGAL
    • tar -xzvf CGAL-4.3.tar.gz
    • mkdir builds/debug builds/release
    • cd builds/release
    • cmake -DCMAKE_BUILD_TYPE=release ../../CGAL-4.3
    • make
    • cd builds/debug
    • cmake -DCMAKE_BUILD_TYPE=Debug ../../CGAL-4.3
    • make
    • export CGAL_DIR=~/CGAL/builds/3.9-Release

Comments are closed.