On Mac OS, the GL headers are not installed along with the rest of the SDK in /usr/include. You find them instead in /System/Library/Frameworks/OpenGL.framework/Headers. One thing that is tricky, though, is that the headers are immediately in that directory, and not in a GL subdirectory. Cairo always does #include <GL/...> which means that one cannot simply give the correct CFLAGS (or gl_CFLAGS) here. One example is cairo-gl-gradient-private.h which has: #if CAIRO_HAS_GL_SURFACE #include <GL/gl.h> #include <GL/glext.h> #elif CAIRO_HAS_GLESV2_SURFACE #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #endif Making a symlink from 'GL' in the src/ subdir to the system Headers directory lets the build proceed but this is probably not a great solution. After src/ the tests are also failing on the assumption that GL implies GLX, but that's a separate issue.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/270.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.