Hi Jacky,

It looks like EGL is trying to use its X11 backend ; which was the default
on older installs due to the way EGL/Mesa used to be built  (FYI, it was
changed in latest snapshots).

You may work around the problem by explicitly calling the EGL Wayland
backend :

#include <wayland-egl.h>

struct wl_display *display;
display = wl_display_connect (NULL);

m_display = eglGetDisplay ((EGLNativeDisplayType) display);


Regards,
Manuel

2014-06-17 10:07 GMT+02:00 Jacky (ZhiJun) Ni <[email protected]>:

> Hi all,
>
>          I came across the issue that executing of function “eglInitialize
> “ failed, if anyone who knows the solution, please help me, the followings
> are the print info and my codes:
>
>
>
> *eglGetDisplay begin*
>
> *eglGetDisplay end*
>
> *eglInitialize begin*
>
> *         libEGL warning: DRI2: xcb_connect failed*
>
> *         libEGL warning: DRI2: xcb_connect failed*
>
> *         libEGL warning: GLX: failed to load GLX *
>
> *         eglInitialize falied*
>
>
>
>          My snippet codes:
>
> *         printf("eglGetDisplay begin\n");*
>
> *    if ((m_display = eglGetDisplay(EGL_DEFAULT_DISPLAY)) !=
> EGL_NO_DISPLAY)*
>
> *    {*
>
> *             errorLine = __LINE__;*
>
> *        printf("eglGetDisplay falied\n");*
>
> *                   return;*
>
> *    }*
>
> *    printf("eglGetDisplay end\n");*
>
>
>
> *    printf("eglInitialize begin\n");*
>
> *    if (!eglInitialize(m_display, 0, 0))*
>
> *    {*
>
> *             errorLine = __LINE__;*
>
> *        printf("eglInitialize falied\n");*
>
> *                   return;*
>
> *    }*
>
> *    printf("eglInitialize end\n");*
>
>
>
>
>
>
>
>
>
> Best Regards,
>
> Jacky Ni
>
>
>
> CONFIDENTIALITY NOTICE: The information contained in this message may be
> privileged and/or confidential. If you are not the intended recipient, or
> responsible for delivering this message to the intended recipient, any
> review, forwarding, dissemination, distribution or copying of this
> communication or any attachment(s) is strictly prohibited. If you have
> received this message in error, please notify the sender immediately, and
> delete it and all attachments from your computer and network.
>
> _______________________________________________
> IVI mailing list
> [email protected]
> https://lists.tizen.org/listinfo/ivi
>
>


-- 
Regards,



*Manuel BACHMANN Tizen Project VANNES-FR*
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi

Reply via email to