<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [gl, glesv2] Cannot build with --gl and --glesv2"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57379#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [gl, glesv2] Cannot build with --gl and --glesv2"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57379">bug 57379</a>
from <span class="vcard"><a class="email" href="mailto:nravi.n@samsung.com" title="Ravi Nanjundappa <nravi.n@samsung.com>"> <span class="fn">Ravi Nanjundappa</span></a>
</span></b>
<pre>As mentioned by Bryce in <a href="show_bug.cgi?id=57379#c9">comment #9</a>, if we enable --enable-gl --enable-glesv2
we get the error mentioned by Joe.
And if we apply the patch applied from <a href="show_bug.cgi?id=57379#c2">comment #2</a>, we get multiple definitions
problem.
I feel its because of this.
In src/cairo-gl.h file, some of the apis are declared within
CAIRO_HAS_GLX_FUNCTIONS and some others within CAIRO_HAS_EGL_FUNCTIONS
conditional macros, for glx and egl respectively. But other apis declarations
like cairo_gl_surface_create() etc. are defined within CAIRO_HAS_GL_SURFACE ||
CAIRO_HAS_GLESV2_SURFACE. As per this, these apis are coming for both gl
(--enable-gl) and for glesv2 (--enable-glesv2) so the reason for multiple
definitions problem.
But this also sounds good. Because these generic apis should be available for
both gl and glesv2 configurations.
So, to avoid such a condition, I feel it would be good if we use either,
--enable-gl --enable-glx (for gl ) OR --enable-egl --enable-glesv2 (for
glesv2).</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>