<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - improve support for building against GL framework on Mac OS"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87707">87707</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>improve support for building against GL framework on Mac OS
</td>
</tr>
<tr>
<th>Product</th>
<td>cairo
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>gl backend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>cairo-bugs@cairographics.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>desrt@desrt.ca
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>cairo-bugs@cairographics.org
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>