[Development] Does iMX6 support EGL on X11 feature?
Denis Shienkov
denis.shienkov at gmail.com
Fri Mar 22 17:06:24 CET 2019
Hi all,
I'm trying to build a Yocto image, but the config tests fails on 'executing
config test egl-x11' test with:
> In file included from main.cpp:7:0:
> main.cpp: In function 'int main(int, char**)':
> main.cpp:15:20: error: cannot convert 'EGLNativeDisplayType {aka
wl_display*}' to 'Display* {aka _XDisplay*}' in initialization
> Display *dpy = EGL_DEFAULT_DISPLAY;
> ^
> 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,
> 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,
> from main.cpp:7:
>
/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
> typedef struct wl_display * EGLNativeDisplayType;
> ^~~~~~~~~~
> main.cpp:16:50: error: cannot convert 'Display* {aka _XDisplay*}' to
'EGLNativeDisplayType {aka wl_display*}' in initialization
> EGLNativeDisplayType egldpy = XOpenDisplay("");
> ^
> In file included from main.cpp:9:0:
>
/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
> struct _XDisplay; /* Forward declare before use for C++ */
> ^~~~~~~~~
> main.cpp:17:11: error: cannot convert 'EGLNativeDisplayType {aka
wl_display*}' to 'Display* {aka _XDisplay*}' in assignment
> dpy = egldpy;
> ^~~~~~
> 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,
> 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,
> from main.cpp:7:
>
/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
> typedef struct wl_display * EGLNativeDisplayType;
> ^~~~~~~~~~
> main.cpp:18:42: error: invalid conversion from 'Window {aka long unsigned
int}' to 'EGLNativeWindowType {aka wl_egl_window*}' [-fpermissive]
> EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0);
>
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> main.cpp:19:26: error: invalid conversion from 'EGLNativeWindowType {aka
wl_egl_window*}' to 'Window {aka long unsigned int}' [-fpermissive]
> XDestroyWindow(dpy, w);
> ^
> In file included from main.cpp:9:0:
>
/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)'
> extern int XDestroyWindow(
> ^~~~~~~~~~~~~~
> Makefile:174: recipe for target 'main.o' failed
> make: *** [main.o] Error 1
test config.qtbase_gui.tests.egl-x11 FAILED
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... :(
DR,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190322/c596b179/attachment.html>
More information about the Development
mailing list