What Qt specific files exactly do I need to add when deploying?
-
@jsulm but it is not listed in
ldd ./myApp
and my application works just fine without it. Why do I need it?@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?@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
This post is deleted! -
@Creaperdown Strange. Maybe there is an issue with linuxdeployqt and Qt 6.6
@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.
@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.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? -
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? -
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
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
-
@JonB hmm... not sure if that helps me, because I AM USING SQL. I can't skip that. I need SQL in my Qt project. And SQL is running fine if I run my application, but I can't deploy.
Thank you for the link. I will observe it.@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? -
@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?@Christian-Ehrlicher Good question. I am using mySQL und SQLite. I just deleted the mimersql from the Qt folder and now linuxdeploy run into the next missing one:
[qt/stdout] ERROR: Could not find dependency: libQt6SerialPort.so.6I am not using SerialPort stuff and I didn't added that in my project file.
hmm...
Ok, I will delete that also or try the new Qt 6.7 beta. I will let you know more later. -
@Christian-Ehrlicher Good question. I am using mySQL und SQLite. I just deleted the mimersql from the Qt folder and now linuxdeploy run into the next missing one:
[qt/stdout] ERROR: Could not find dependency: libQt6SerialPort.so.6I am not using SerialPort stuff and I didn't added that in my project file.
hmm...
Ok, I will delete that also or try the new Qt 6.7 beta. I will let you know more later.@Volker75 said in What Qt specific files exactly do I need to add when deploying?:
I am not using SerialPort stuff and I didn't added that in my project file.
I would guess you link against it somewhere. Please take a look with
ldd
which dependencies your executable has. -
@Volker75 said in What Qt specific files exactly do I need to add when deploying?:
I am not using SerialPort stuff and I didn't added that in my project file.
I would guess you link against it somewhere. Please take a look with
ldd
which dependencies your executable has.@Christian-Ehrlicher No, I am not using the serial stuff. It wasn't even installed, so I wasn't able to delete it.
I installed Qt 6.7.0 and also added that serial plugin. Now it finished the linuxdeploy. :-)
I will try without the serial plugin tomorrow, since i didn't add that in the project file and it is also not visible with "ldd". So it should work without.
Thank you for your help.
Have a nice weekend. -
@Volker75 said in What Qt specific files exactly do I need to add when deploying?:
I am not using SerialPort stuff and I didn't added that in my project file.
I would guess you link against it somewhere. Please take a look with
ldd
which dependencies your executable has.@Christian-Ehrlicher @Volker75 Im having the same problem: im trying to deploy my qt project in ubuntu 20.04 with linuxdeployqt, my project (https://github.com/GabR36/QEstoqueLoja) uses sqlite and have the following in cmakelists.txt:
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql)
my first try was the following:
./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake ... ERROR: ldd outputLine: "libmimerapi.so => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
the ldd:
ldd /home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so ... libmimerapi.so => not found ...
then i tried removing libqsqlmimer.so from qt folder and the following was the result of the same linuxdeployqt command from before:
... ERROR: ldd outputLine: "libodbc.so.2 => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
i removed it too then:
ERROR: ldd outputLine: "libpq.so.5 => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
i also removed it and try linuxdeployqt again which worked without errors but the executable in the directory still does not run, saying it does not found shared library.
-
@Christian-Ehrlicher @Volker75 Im having the same problem: im trying to deploy my qt project in ubuntu 20.04 with linuxdeployqt, my project (https://github.com/GabR36/QEstoqueLoja) uses sqlite and have the following in cmakelists.txt:
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql)
my first try was the following:
./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake ... ERROR: ldd outputLine: "libmimerapi.so => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
the ldd:
ldd /home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so ... libmimerapi.so => not found ...
then i tried removing libqsqlmimer.so from qt folder and the following was the result of the same linuxdeployqt command from before:
... ERROR: ldd outputLine: "libodbc.so.2 => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
i removed it too then:
ERROR: ldd outputLine: "libpq.so.5 => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
i also removed it and try linuxdeployqt again which worked without errors but the executable in the directory still does not run, saying it does not found shared library.
@gabr369 said in What Qt specific files exactly do I need to add when deploying?:
it does not found shared library
Which library?
-
@Christian-Ehrlicher @Volker75 Im having the same problem: im trying to deploy my qt project in ubuntu 20.04 with linuxdeployqt, my project (https://github.com/GabR36/QEstoqueLoja) uses sqlite and have the following in cmakelists.txt:
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools Sql) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools Sql)
my first try was the following:
./linuxdeployqt-continuous-x86_64.AppImage qestoqueloja/QEstoqueLoja -verbose=2 -qmake=/home/gabriel/Qt/6.6.1/gcc_64/bin/qmake ... ERROR: ldd outputLine: "libmimerapi.so => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so"
the ldd:
ldd /home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlmimer.so ... libmimerapi.so => not found ...
then i tried removing libqsqlmimer.so from qt folder and the following was the result of the same linuxdeployqt command from before:
... ERROR: ldd outputLine: "libodbc.so.2 => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlodbc.so"
i removed it too then:
ERROR: ldd outputLine: "libpq.so.5 => not found" ERROR: for binary: "/home/gabriel/Qt/6.6.1/gcc_64/plugins/sqldrivers/libqsqlpsql.so"
i also removed it and try linuxdeployqt again which worked without errors but the executable in the directory still does not run, saying it does not found shared library.
-
@jsulm i dont know, its simply an alert from gnome or something, which says: 'there isnt app for file: "shared library" <find program> <Ok>.