From 246763308bfca93977c4ad5bee7c8654fcf7dfd3 Mon Sep 17 00:00:00 2001 From: Roy Kollen Svendsen Date: Sat, 13 Jul 2024 22:35:58 +0200 Subject: [PATCH] package/qt6/qt6base: fix missing plugins and qml2 imports When using the default value "." for of ArchData, qt6-applications that require QML2 imports or plugins, will not run: In my case the wayland-egl platform plugin is not found: qt.qpa.plugin: Could not find the Qt platform plugin "wayland-egl" in "" And I also get a lot of qml related warnings: qrc:/qml/main.qml:3:1: module "QtQuick.Layouts" is not installed Prior to this fix, we had to set the QML2_IMPORT_PATH and QT_PLUGIN_PATH or make sure qt.conf is available. After this fix, ArchData starts with "lib", which is necessary (according to my own experiments) for qt6-applications to find plugins and qml2 imports. The root cause is still unknown, but I think the current solution is sufficient. Setting ArchData to "lib/qt6" is also a good first step towards a better qt6 filesystem layout. I will continue improving the qt6 filesystem layout in a later patch. Signed-off-by: Roy Kollen Svendsen Signed-off-by: Arnout Vandecappelle --- package/qt6/qt6base/qt6base.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk index 6cb82d9a94..5ab61ba3e0 100644 --- a/package/qt6/qt6base/qt6base.mk +++ b/package/qt6/qt6base/qt6base.mk @@ -42,6 +42,7 @@ QT6BASE_INSTALL_STAGING = YES QT6BASE_CONF_OPTS = \ -DQT_HOST_PATH=$(HOST_DIR) \ + -DINSTALL_ARCHDATADIR=lib/qt6 \ -DFEATURE_concurrent=OFF \ -DFEATURE_xml=OFF \ -DFEATURE_sql=OFF \