meta-digi-dey: qtbase: update ccimx6 qt5.sh script to reflect xwayland migration
This commit adds new environment variables to support QT with wayland and to fix the following error message when executing QT5 applications on the target. qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: minimal, offscreen, vnc, wayland-egl, wayland, xcb. Aborted. Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
parent
2ade93d8eb
commit
58707b40ba
|
|
@ -1,2 +0,0 @@
|
|||
# Use EGLFS platform plugin for images without X11
|
||||
[ -f "/etc/init.d/xserver-nodm" ] || export QT_QPA_PLATFORM="eglfs"
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
export QT_QPA_PLATFORM="wayland"
|
||||
|
||||
[ -f "/etc/profile.d/weston.sh" ] && return
|
||||
|
||||
export QT_QPA_PLATFORM="xcb"
|
||||
|
||||
# Use EGLFS platform plugin for images without XWayland and X11
|
||||
[ -f "/etc/xserver-nodm/Xserver" ] || export QT_QPA_PLATFORM="eglfs"
|
||||
|
|
@ -6,9 +6,11 @@
|
|||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SCRIPT_DIR = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', 'fb', d)}"
|
||||
|
||||
# Digi: we use a custom script per platform, not per backend like NXP does
|
||||
SRC_URI_append = " \
|
||||
file://qt5.sh \
|
||||
file://${SCRIPT_DIR}/qt5.sh \
|
||||
"
|
||||
SRC_URI_append_imxgpu3d = " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', \
|
||||
|
|
|
|||
Loading…
Reference in New Issue