[cairo-bugs] [Bug 87707] New: improve support for building against GL framework on Mac OS
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Dec 25 06:56:43 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=87707
Bug ID: 87707
Summary: improve support for building against GL framework on
Mac OS
Product: cairo
Version: unspecified
Hardware: Other
OS: Mac OS X (All)
Status: NEW
Severity: normal
Priority: medium
Component: gl backend
Assignee: cairo-bugs at cairographics.org
Reporter: desrt at desrt.ca
QA Contact: cairo-bugs at cairographics.org
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20141225/2de183b4/attachment.html>
More information about the cairo-bugs
mailing list