<p dir="ltr">I think the best solution is to detect the support for the egl platform extension in the header, and this should be a trivial fix.</p>
<div class="gmail_quote">On Apr 18, 2014 10:13 AM, "Ilia Mirkin" <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Chad,<br>
<br>
I've recently started getting build errors on piglit, and have<br>
narrowed it down to your commit 6b71f217052 ("util/egl: Add<br>
piglit_egl_get_default_display()"). The build error I'm getting is<br>
<br>
tests/util/piglit-util-egl.c: In function 'piglit_egl_get_default_display':<br>
tests/util/piglit-util-egl.c:111:7: error: 'EGL_PLATFORM_X11_EXT'<br>
undeclared (first use in this function)<br>
tests/util/piglit-util-egl.c:111:7: note: each undeclared identifier<br>
is reported only once for each function it appears in<br>
tests/util/piglit-util-egl.c:116:7: error: 'EGL_PLATFORM_WAYLAND_EXT'<br>
undeclared (first use in this function)<br>
tests/util/piglit-util-egl.c:121:7: error: 'EGL_PLATFORM_GBM_MESA'<br>
undeclared (first use in this function)<br>
make[2]: *** [target_api/no_api/tests/util/CMakeFiles/piglitutil.dir/piglit-util-egl.c.o]<br>
Error 1<br>
<br>
And indeed, these defines do not exist in my system eglext.h (which<br>
comes from Mesa 10.0.4). They do, however, appear in the mesa git one.<br>
<br>
I think it's a little annoying to force people to build against the<br>
very latest EGL headers, but I guess it's not the worst thing in the<br>
world either. However I was hoping there'd be a way to not force that,<br>
for convenience. I'm not well-enough versed in (E)GL to know how to<br>
deal with this though.<br>
<br>
Any ideas?<br>
<br>
  -ilia<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</blockquote></div>