Build issue on Ubuntu 22.04
Error message with the initial build --> Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
Googled and have been unable to determine which package I might be missing or config change I need to make.
Furthermore, upon building (with the above error), I am getting a Qt6 error on launch but have QtQuick installed:
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QQmlApplicationEngine failed to load component
qrc:/Writeboard/Main.qml:3:1: module "QtQuick.Controls" is not installed
qrc:/Writeboard/Main.qml:2:1: module "QtQuick.Window" is not installed
qrc:/Writeboard/Main.qml:1:1: module "QtQuick" is not installed
qrc:/Writeboard/Main.qml:3:1: module "QtQuick.Controls" is not installed
qrc:/Writeboard/Main.qml:2:1: module "QtQuick.Window" is not installed
qrc:/Writeboard/Main.qml:1:1: module "QtQuick" is not installed
qrc:/Writeboard/Main.qml:3:1: module "QtQuick.Controls" is not installed
qrc:/Writeboard/Main.qml:2:1: module "QtQuick.Window" is not installed
qrc:/Writeboard/Main.qml:1:1: module "QtQuick" is not installed
System output of apt:
apt list --installed | grep qtquick-controls
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
qml-module-qtquick-controls2/jammy,now 5.15.3+dfsg-1 amd64 [installed]
qml-module-qtquick-controls/jammy,now 5.15.3-1 amd64 [installed]
I can confirm the application not launching on Debian 12 Bookworm too.
KDE Plasma X11
sergio@debian:~/writeboard/build$ ./writeboard
QQmlApplicationEngine failed to load component
qrc:/Writeboard/Main.qml:3:1: module "QtQuick.Controls" is not installed
qrc:/Writeboard/Main.qml:2:1: module "QtQuick.Window" is not installed
qrc:/Writeboard/Main.qml:1:1: module "QtQuick" is not installed
qrc:/Writeboard/Main.qml:3:1: module "QtQuick.Controls" is not installed
qrc:/Writeboard/Main.qml:2:1: module "QtQuick.Window" is not installed
qrc:/Writeboard/Main.qml:1:1: module "QtQuick" is not installed
qrc:/Writeboard/Main.qml:3:1: module "QtQuick.Controls" is not installed
qrc:/Writeboard/Main.qml:2:1: module "QtQuick.Window" is not installed
qrc:/Writeboard/Main.qml:1:1: module "QtQuick" is not installed
But in my case the XKB can be found: -- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.5.0", minimum required is "0.5.0")
For that last one, check if you have libxkbcommon-dev available in your Ubuntu Jammy repository.
On Ubuntu 22.04.3 to fix that: sudo apt -y install qml6-module-qtqml-workerscript qml6-module-qtquick-controls qml6-module-qtquick-window qml6-module-qtquick qml6-module-qtquick-templates