<div dir="ltr"><div>The headers can be fixed.</div><div><br></div><div>But I doubt that's all it takes. Neither GL or EGL fully abstract the windowing system API such as XLIB.  If XLIB is not used for creating windows, something else (GBM?) must be used, and apitrace would need glue code (retrace/glws_egl_gbm*) to use it.</div>
<div><br></div><div>Another alternative would be to use waffle.</div><div><br></div><div>Jose</div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 17, 2013 at 4:11 PM, Alexander Monakov <span dir="ltr"><<a href="mailto:amonakov@ispras.ru" target="_blank">amonakov@ispras.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The issue here is that apitrace picks up its own Khronos headers instead of<br>
system headers; according to main CMakeLists:<br>
<br>
# We use bundled headers for all Khronos APIs, to guarantee support for both<br>
# OpenGL and OpenGL ES at build time, because the OpenGL and OpenGL ES 1 APIs<br>
# are so intertwined that conditional compilation extremely difficult. This<br>
# also avoids missing/inconsistent declarations in system headers.<br>
include_directories (BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/khronos)<br>
<br>
Clearly thirdparty/khronos/EGL/ is missing required logic to define all<br>
platform-specific types in your case; on non-Android Linux, it presumes<br>
X11-based EGL.<br>
<br>
On my system Mesa-supplied eglplatform.h has additional code for GBM and<br>
Wayland, for instance.<br>
<br>
You could hack this in some way to proceed with testing on your end; for<br>
example by copying system EGL headers to thirdparty/khronos.<br>
<br>
I don't know how to approach this on apitrace side.  I encourage you to open<br>
an issue on github and link this discussion.<br>
<div class="HOEnZb"><div class="h5"><br>
Alexander<br>
_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
</div></div></blockquote></div><br></div></div></div>