Redux: Kirigami module not found (Kirigami2 not installed when it is)

I am trying to build Keysmith from sources on Kubuntu 22.04.3, x86_64, fully patched. I have KDE Plasma Shell version is 5.24.7. Dependent libraries are all supplied by Ubuntu or Kubuntu. Nothing else was built from sources.

When I attempt to run Keysmith from the command line, I get:

$ ./bin/keysmith
QML debugging is enabled. Only use this in a safe environment.
QQmlApplicationEngine failed to load component
qrc:/main.qml:8:1: module "org.kde.kirigami" version 2.20 is not installed

According to Kirigami module not found (Kirigami2 not installed when it is), “… the Kirigami version you have on your system is actually lower than 2.20. Try downgrading the version used in your QML files…”

The problem is, I have Kirigami 5.92 on my system (and not a downlevel version):

$ find /usr/lib -iname '*kirigami*' | grep '\.so'
/usr/lib/x86_64-linux-gnu/libKF5Kirigami2.so
/usr/lib/x86_64-linux-gnu/libKF5Kirigami2.so.5
/usr/lib/x86_64-linux-gnu/libKF5Kirigami2.so.5.92.0

What is the problem and how do I fix it?

The KDE Frameworks release version (5.92) is different to the Kirigami version that is available. I’m not sure how you would normally check this, but from looking at a few files in the Kirigami repo and going through the Frameworks versions, it looks like maybe you’d need to be using at least KDE Frameworks 5.95.

1 Like

For reference:

So grep -i 'exports: \["' /usr/lib64/qt5/qml/org/kde/kirigami.2/plugins.qmltypes would tell you which versions you have.

The path is /usr/lib64/qt5/ on openSUSE and Fedora, /usr/lib64/qt on Arch, /usr/lib/x86_64-linux-gnu/qt5/ on Debian/Ubuntu.

If you pipe the result to awk '{print $NF}' | sort --human-numeric-sort | tail -1, you’ll see the highest module version you have on your system, and that’s a good indicator of what version you have.

Now what KDE Frameworks version provides which Kirigami version? Beats me. :melting_face:

2 Likes