Build Qt5 with wayland fails


Johannes Pointner
 

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

Join {meta-freescale@lists.yoctoproject.org to automatically receive all group messages.