Compiling the CGAL Ipelets under macOS
19 Jul 2018CGAL Ipelets are great, but with each CGAL and Ipe new releases I need to recompile them, and the procedure seems to be changing all the time. The latest is that Homebrew doesn’t have the source of Ipe anymore, it just pulls the official Ipe.app…
For CGAL 4.11 and Ipe 7.2, here are the steps:
- download Ipe.app from ipe.otfried.org
- install in
/Applications/
$ brew install cgal
- download the latest source code of CGAL
$ cd CGAL-4.11.2/demo/CGAL_ipelets/
$ cmake . -DIPE_INCLUDE_DIR=/Applications/Ipe.app/Contents/Frameworks/Headers -DIPE_LIBRARIES=/Applications/Ipe.app/Contents/Frameworks/libipe.dylib
- you must copy the
*.so
andlua/*.lua
to your ipelets folder. Go to the menu ‘Help/Show configuration’ to see where you should put your newly created Ipe extensions. Mine was~/.ipe/ipelets
so I created that folder and copied the extensions. $ cp *.so ~/.ipe/ipelets/
$ cp lua/*.lua ~/.ipe/ipelets/
- voilà