folfcoder / writeboard

Handwriting input for Linux desktops.
GNU General Public License v3.0
29 stars 2 forks source link

Build issue on Ubuntu 22.04 #1

Open spiicytuna opened 1 year ago

spiicytuna commented 1 year ago

Error message with the initial build --> _Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDEDIR) (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 commented 1 year ago

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 commented 6 months ago

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