<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 June 2015 at 19:33, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 18 June 2015 at 19:29, Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
Sorry about that. Unintentionally hit send ;-\<br>
<span class=""><br>
> On 18 June 2015 at 06:53, Julien Isorce <<a href="mailto:julien.isorce@gmail.com">julien.isorce@gmail.com</a>> wrote:<br>
>> CC       egl_dri2.lo<br>
>> include/EGL/eglplatform.h:135:2:<br>
>>   error: "Platform not recognized"<br>
>> include/EGL/eglplatform.h:140:9:<br>
>>   error: unknown type name 'EGLNativeDisplayType'<br>
>> typedef EGLNativeDisplayType NativeDisplayType;<br>
>><br>
</span>You should not longer see this message. Did you try building things,<br>
with the updated eglplatform.h ?<br></blockquote><div><br></div><div>You are right I forgot to update the new error message with current  eglplatform.h. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
>> Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=90249" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=90249</a><br>
>> Signed-off-by: Julien Isorce <<a href="mailto:j.isorce@samsung.com">j.isorce@samsung.com</a>><br>
>> ---<br>
>>  include/EGL/eglplatform.h | 4 ++--<br>
>>  1 file changed, 2 insertions(+), 2 deletions(-)<br>
>><br>
>> diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h<br>
>> index 7802542..b376e64 100644<br>
>> --- a/include/EGL/eglplatform.h<br>
>> +++ b/include/EGL/eglplatform.h<br>
>> @@ -77,7 +77,7 @@ typedef HDC     EGLNativeDisplayType;<br>
>>  typedef HBITMAP EGLNativePixmapType;<br>
>>  typedef HWND    EGLNativeWindowType;<br>
>><br>
>> -#elif defined(__APPLE__) || defined(__WINSCW__) || defined(__SYMBIAN32__)  /* Symbian */<br>
>> +#elif defined(__WINSCW__) || defined(__SYMBIAN32__)  /* Symbian */<br>
>><br>
</span>The above "defined(__APPLE__))" comes from Khronos, so if it's wrong<br>
perhaps it should be reported to them ? Afaict with current mesa this<br>
patch is not needed, and things will just work.<br></blockquote><div><br></div><div>I remember that with the latest eglplatform.h I had to manually include #include <X11/Xlib.h> / #include <X11/Xutil.h> where they are used  (because not hitting their inclusion by eglplatform.h)</div><div>But then build was complaining about converting int to Display*, and void* to Pixmap/Window. A naive cast could silenced the build error but then it was crashing at runtime.</div><div>I'll have another try.</div><div><br></div><div>Cheers</div><div>Julien</div>







<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Cheers,<br>
Emil<br>
</blockquote></div><br></div></div>