<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm trying to build a Yocto image, but the config tests fails on 'executing config test egl-x11' test with:</div><div><br></div><div>> In file included from main.cpp:7:0:<br>> main.cpp: In function 'int main(int, char**)':<br>> main.cpp:15:20: error: cannot convert 'EGLNativeDisplayType {aka wl_display*}' to 'Display* {aka _XDisplay*}' in initialization<br>>      Display *dpy = EGL_DEFAULT_DISPLAY;<br>>                     ^<br>> In file included from /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:38:0,<br>>                  from /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/EGL/egl.h:39,<br>>                  from main.cpp:7:<br>> /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/EGL/eglvivante.h:111:16: note: class type 'wl_display' is incomplete<br>>  typedef struct wl_display *      EGLNativeDisplayType;<br>>                 ^~~~~~~~~~<br>> main.cpp:16:50: error: cannot convert 'Display* {aka _XDisplay*}' to 'EGLNativeDisplayType {aka wl_display*}' in initialization<br>>      EGLNativeDisplayType egldpy = XOpenDisplay("");<br>>                                                   ^<br>> In file included from main.cpp:9:0:<br>> /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/X11/Xlib.h:255:8: note: class type 'Display {aka _XDisplay}' is incomplete<br>>  struct _XDisplay;  /* Forward declare before use for C++ */<br>>         ^~~~~~~~~<br>> main.cpp:17:11: error: cannot convert 'EGLNativeDisplayType {aka wl_display*}' to 'Display* {aka _XDisplay*}' in assignment<br>>      dpy = egldpy;<br>>            ^~~~~~<br>> In file included from /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:38:0,<br>>                  from /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/EGL/egl.h:39,<br>>                  from main.cpp:7:<br>> /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/EGL/eglvivante.h:111:16: note: class type 'wl_display' is incomplete<br>>  typedef struct wl_display *      EGLNativeDisplayType;<br>>                 ^~~~~~~~~~<br>> main.cpp:18:42: error: invalid conversion from 'Window {aka long unsigned int}' to 'EGLNativeWindowType {aka wl_egl_window*}' [-fpermissive]<br>>      EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);<br>>                              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>> main.cpp:19:26: error: invalid conversion from 'EGLNativeWindowType {aka wl_egl_window*}' to 'Window {aka long unsigned int}' [-fpermissive]<br>>      XDestroyWindow(dpy, w);<br>>                           ^<br>> In file included from main.cpp:9:0:<br>> /mnt/data/Yocto-miatech/yocto-miatech/build-apalis-imx6/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+5b6eb8e247-r0/recipe-sysroot/usr/include/X11/Xlib.h:2243:12: note:   initializing argument 2 of 'int XDestroyWindow(Display*, Window)'<br>>  extern int XDestroyWindow(<br>>             ^~~~~~~~~~~~~~<br>> Makefile:174: recipe for target 'main.o' failed<br>> make: *** [main.o] Error 1<br>test config.qtbase_gui.tests.egl-x11 FAILED</div><div><br></div><div>so, my quiestion is: Is it possible to use an OpenGL on X11 with XCB backend? I need to accelerate the QWidgets application in some way... :(<br></div><div><br></div><div>DR,</div><div>Denis<br></div></div></div></div>