What Qt specific files exactly do I need to add when deploying?
-
wrote on 24 Oct 2023, 10:54 last edited by Creaperdown
I am working on creating a tar.gz of my application that will run on every linux distribution. When creating an installer for windows, the qtwin deploy tool moved multiple qml folders and plugins into my deploy folder. What (except the shared libraries) do I need to deploy my application for linux?
-
I am working on creating a tar.gz of my application that will run on every linux distribution. When creating an installer for windows, the qtwin deploy tool moved multiple qml folders and plugins into my deploy folder. What (except the shared libraries) do I need to deploy my application for linux?
@Creaperdown best use some tool for this, like linuxdeployqt, or cmake deplopyment found in newest Qt versions, or other similar tools for flatpak or snap.
-
@Creaperdown best use some tool for this, like linuxdeployqt, or cmake deplopyment found in newest Qt versions, or other similar tools for flatpak or snap.
wrote on 24 Oct 2023, 11:13 last edited by@sierdzio thanks. linuxdeployqt says that it only works on the last supported LTS version of ubuntu. Do you have an idea which one that would be?
-
@sierdzio thanks. linuxdeployqt says that it only works on the last supported LTS version of ubuntu. Do you have an idea which one that would be?
@Creaperdown let me google that for you
I guess it would mean 14.04.6.
-
wrote on 24 Oct 2023, 12:42 last edited by
@sierdzio I have tried 14.04 in the past and its too old to do anything on in my experience. Looking through the issues it seems like 20.04 works fine with linuxdeployqt since 18 is near its EOL
-
@Creaperdown let me google that for you
I guess it would mean 14.04.6.
wrote on 24 Oct 2023, 12:57 last edited by@sierdzio said in What Qt specific files exactly do I need to add when deploying?:
I guess it would mean 14.04.6.
I don't know where that might have come from as the "last supported LTS version of ubuntu", since that means 2014, and I doubt Ubuntu stopped there! :) Now it should be 22.04+ (i.e. or later).
-
@sierdzio thanks. linuxdeployqt says that it only works on the last supported LTS version of ubuntu. Do you have an idea which one that would be?
@Creaperdown said in What Qt specific files exactly do I need to add when deploying?:
it only works on the last supported LTS version of ubuntu
Try to add -unsupported-allow-new-glibc parameter to linuxdeployqt call
-
@sierdzio said in What Qt specific files exactly do I need to add when deploying?:
I guess it would mean 14.04.6.
I don't know where that might have come from as the "last supported LTS version of ubuntu", since that means 2014, and I doubt Ubuntu stopped there! :) Now it should be 22.04+ (i.e. or later).
-
wrote on 24 Oct 2023, 14:34 last edited by
-
I am trying linuxdeployqt on 20.04 and it works fine up to the point where I tells me the following:
Does someone have an idea what the issue is?
wrote on 24 Oct 2023, 14:38 last edited by@Creaperdown The message is clear: libqsqlmimer.so is not installed. Did you install sql module? I have it in my installation.
-
@Creaperdown The message is clear: libqsqlmimer.so is not installed. Did you install sql module? I have it in my installation.
@JoeCFD said in What Qt specific files exactly do I need to add when deploying?:
libqsqlmimer.so is not installed
It is installed. Not installed is its dependency (libmimerapi.so).
-
@JoeCFD said in What Qt specific files exactly do I need to add when deploying?:
libqsqlmimer.so is not installed
It is installed. Not installed is its dependency (libmimerapi.so).
wrote on 24 Oct 2023, 14:41 last edited by@jsulm but it is not listed in
ldd ./myApp
and my application works just fine without it. Why do I need it? -
@jsulm but it is not listed in
ldd ./myApp
and my application works just fine without it. Why do I need it?@Creaperdown Is it possible that you added qt sql module in your pro or CMakeLists.txt file?
-
@jsulm but it is not listed in
ldd ./myApp
and my application works just fine without it. Why do I need it?wrote on 24 Oct 2023, 14:47 last edited by JoeCFD@Creaperdown plugin is different from so although both are libs. Sos are linked to your app and ldd can see all of them. Plugins are loaded from a fixed path at running time and are not exposed to ldd.
it is the harder part to deploy your plugins at the right spot or do not forget to set the path for your app to load them.
-
@jsulm but it is not listed in
ldd ./myApp
and my application works just fine without it. Why do I need it?wrote on 24 Oct 2023, 14:50 last edited by@Creaperdown Not explicitly, these are all qt modules I use:
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Quick Widgets Network Gui QuickControls2 Test)
-
@Creaperdown Not explicitly, these are all qt modules I use:
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Quick Widgets Network Gui QuickControls2 Test)
@Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6
-
@Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6
wrote on 24 Oct 2023, 14:56 last edited byThis post is deleted! -
@Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6
wrote on 24 Oct 2023, 14:59 last edited by@jsulm I cant find an sql module to download from the online installer. Is there a way to fix this? I can not find the libmimerapi.so file in the ubuntu repos either.
-
@jsulm I cant find an sql module to download from the online installer. Is there a way to fix this? I can not find the libmimerapi.so file in the ubuntu repos either.
wrote on 24 Oct 2023, 15:25 last edited by@Creaperdown As jsulm said, it could be a bug in the tool since you do not use sql. The tool tries to wrap all plugins.
https://doc.qt.io/qt-6/sql-driver.html
https://doc.qt.io/qt-6/qtsql-index.html -
@Creaperdown As jsulm said, it could be a bug in the tool since you do not use sql. The tool tries to wrap all plugins.
https://doc.qt.io/qt-6/sql-driver.html
https://doc.qt.io/qt-6/qtsql-index.htmlwrote on 28 Oct 2023, 11:23 last edited by@JoeCFD I have searched through my source directory again and couldn't find any mention of sql, but I found the following:
Could it be possible that this causes the issue?
1/40