Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Build issue on Ubuntu 22.04 #1

Open
spiicytuna opened this issue Aug 7, 2023 · 2 comments
Open

Build issue on Ubuntu 22.04 #1

spiicytuna opened this issue Aug 7, 2023 · 2 comments

Comments

@spiicytuna
Copy link

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]
@SSUPII
Copy link

SSUPII commented Aug 25, 2023

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.

@infoscav
Copy link

infoscav commented Feb 1, 2024

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants