What Qt specific files exactly do I need to add when deploying?
-
@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).
-
@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
-
-
@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).
-
@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?
-
@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.
-
@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
-
This post is deleted!
-
@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.
-
@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 -
@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? -
This post is deleted!
-
Hallo, I am also running into the issue of "[qt/stdout] ERROR: Could not find dependency: libmimerapi.so".
Well, I am using SQL in my Qt project and it is running fine. But I also can't fine a file "libmimerapi.so" on my hard disk.
Anyone solved this problem already? -
@Volker75
https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/150For some reason, linuxdeploy-plugin-qt started deploying the Qt6Sql module even though I do not use SQL anywhere in my project. This would not be a problem normally, but also if I run the linuxdeploy twice it fails on the second run because it is unable to locate libmimerapi.so
Something in your bundle must link to Qt6Sql. That's the only reason why this plugin would start shipping those files
-
-
@Volker75 If you don't need mimersql plugin then remove this sql plugin (the
.so
file) and try again. Does linuxdeployqt works then as expected?