The flatpak runtime org.kde.Sdk version qt5.15lts-24.08 seems to lack some modules

The org.kde.Sdk qt5.15lts-24.08 runtime seems to lack some modules required for building an app I’m trying to ship. This is the build error I’m seeing:

Project ERROR: Unknown module(s) in QT: organizer systeminfo systeminfo-private

These are the packages that seem to correspond to the missing headers and development files on Alpine: 1. qt5-qtpim-dev 2. qt5-qtsystems-dev

I realize the medium term solution to this should be to move to Qt6. But the affected apps, like I think some apps using the lomiri UI toolkit for ubuntu touch, aren’t fully ported yet I believe.

The general Flatpak solution to this is to bundle those dependencies in your app.

1 Like

Thanks for letting me know! During building the dependencies from source, I noticed qpim Qt Project / qt / qtpim · GitLab doesn’t seem to have a Qt6 release or branch, even though the latest dev does seem to be intended for Qt6. Perhaps that is an oversight?

Meanwhile, Qt Project / qt / qtpim · GitLab doesn’t seem to have anything of use tagged at all other than some I assume very old 5.0.0 alpha, making it difficult to figure out what to build for either Qt5 (which I want) or Qt6.

I also wonder if there is generally some list of what versions are meant to be compatible with what others…

It also looks like KDE’s version of qtpim for kde/5.15 potentially has a bug with the qmake script, it seems to ignore the PREFIX during install, but I Might have done that wrongly:

cd src/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/workspace/qtpim/src/src.pro PREFIX=/app/usr/ ) && make -f Makefile install
make[1]: Entering directory '/home/workspace/qtpim/build/src'
cd contacts/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/workspace/qtpim/src/contacts/contacts.pro PREFIX=/app/usr/ ) && make -f Makefile install
make[2]: Entering directory '/home/workspace/qtpim/build/src/contacts'
/usr/bin/qmake -install qinstall -exe ../../lib/libQt5Contacts.so.0.0.0 /usr/lib/aarch64-linux-gnu/libQt5Contacts.so.0.0.0
Error copying ../../lib/libQt5Contacts.so.0.0.0 to /usr/lib/aarch64-linux-gnu/libQt5Contacts.so.0.0.0: Cannot create /usr/lib/aarch64-linux-gnu/libQt5Contacts.so.0.0.0 for output
make[2]: *** [Makefile:3844: install_target] Error 3
make[2]: Leaving directory '/home/workspace/qtpim/build/src/contacts'

Sorry if I’m on the entirely wrong track here.

Most of the dependencies required for Ubuntu Touch apps do not have proper support for being installed into prefixes other than /usr/.
I think the proper solution is to have a separate runtime for it: UBports / Development / Core / Flatpak / Ubuntu Touch Flatpak Runtime · GitLab.
All that’s missing is cleaning this up and submitting it to flathub, then it would be fairly easy to package most of the Ubuntu Touch apps.
I don’t currently require any of these apps, so someone else needs to pick up this project.

1 Like

So wouldn’t that suggest perhaps it might be worth updating the org.kde.Sdk to include the missing Qt deps?

I’m working on things using the lomiri UI toolkit, not really general UT apps. The lomiri UI toolkit doesn’t require anything from Ubuntu Touch, as far as I can tell. It just requires the missing parts of Qt.

No, as far as I know all of these modules are no longer maintained and abandoned.

1 Like

Hm, I see. So under Qt6 they’re simply gone with no replacement? That complicates things.

I’m reluctant to poke a UBports runtime, since it seems less universally useful, and the app I’m trying to package doesn’t really need UBports.