I want to target Ubuntu 24.04, but with these requirements:
librtmidi
This script worked pretty well, but it won't naturally bundle any other libs than Qt libs + QML runtime and won't package anything further:
https://doc.qt.io/qt-6/qt-generate-deploy-qml-app-script.html
I also couldn't figure out how to make that script work with CPack
that I have used to create a Deb.
I tried to build an AppImage
, but it failed because I should have used some ancient LTS as the build platform.
So...would Snap
be the only realistic option to make this work?
I would prefer Deb
, but I don't know how I could make it install the whole Qt runtime somewhere so that it works. Maybe with a custom build script instead of CPack
?
Actually I was able to make CPack work with https://doc.qt.io/qt-6/qt-generate-deploy-qml-app-script.html by adding set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
and then setting CMAKE_INSTALL_PREFIX
to /opt/myApplication
(for example).