[meta-freescale] Build Qt5 with wayland fails

Johannes Pointner h4nn35.work at gmail.com
Tue May 29 04:27:57 PDT 2018


Hello,

my Qt5 build fails with following error message:

 /data/workspace/yocto/poky/sumo/ppt50/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.9.4+gitAUTOINC+0d9208cecb-r0/git/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv/qeglfsvivintegration.cpp:
In member function 'virtual void QEglFSVivInt
egration::platformInit()':
| /data/workspace/yocto/poky/sumo/ppt50/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.9.4+gitAUTOINC+0d9208cecb-r0/git/src/plugins/platforms/eglfs/deviceintegration/eglfs_viv/qeglfsvivintegration.cpp:68:41:
error: invalid conversion from 'void*'
to 'EGLNativeDisplayType {aka wl_display*}' [-fpermissive]
|      mNativeDisplay = fbGetDisplayByIndex(framebufferIndex());

This happens because of the used pkg-config in case of wayland which
sets the following flags:
Cflags: -I${includedir} -DLINUX -DEGL_API_FB -DWL_EGL_PLATFORM
and WL_EGL_PLATFORM sets
#elif defined(WL_EGL_PLATFORM) /* Wayland */
typedef struct wl_display *   EGLNativeDisplayType;
typedef struct wl_egl_window *EGLNativeWindowType;
typedef struct wl_egl_pixmap *EGLNativePixmapType;

For Qt5 with wayland it seems the needed pkg-config would be
egl_linuxfb.pc and not egl_wayland.pc.

But I don't know if this is the right solution.

Cheers,
Hannes


More information about the meta-freescale mailing list