When trying to build, I get the following errors: CC build/release/platform/gl/gl-main.o platform/gl/gl-main.c:1677:2: warning: implicit declaration of function 'glutSetOption' is invalid in C99 [-Wimplicit-function-declaration] glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL... ^ platform/gl/gl-main.c:1677:16: error: use of undeclared identifier 'GLUT_ACTION_ON_WINDOW_CLOSE' glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL... ^ platform/gl/gl-main.c:1677:45: error: use of undeclared identifier 'GLUT_ACTION_GLUTMAINLOOP_RETURNS' glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
Fixed with the following commit. Running still fails, but that is commit 9b2d839034a958a18864eee81dbd257f9b86d71e Author: Tor Andersson <tor.andersson@artifex.com> Date: Thu Sep 6 11:34:08 2018 +0200 gl: ifdef freeglut specific API calls so it will build on MacOS. *** This bug has been marked as a duplicate of bug 699726 ***