You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For 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
I want to be able to:
Explicitly disable Qt modules for linking
Probably also explicitly disable library files for dependencies if I want to include Qt6Sql module anyway
As I was digging around I have noticed, for some reason many more modules are included. Modules I do not use at all. Things like PDF, StateMachine etc. I have scanned the codebase many times, there is not a single mention/use of any of these modules in my C++ or QML code.
Finally, on the second run linuxdeploy-plugin-qt scans also already existing files in AppDir/usr/lib and then tried to satisfy even more dependencies which end up with a failure to find libmimerapi.so.
A workaround is to delete contents of AppDir/usr/lib before running linuxdeploy. This still deploys many unwanted Qt modules, but it finishes the AppImage
As I was digging around I have noticed, for some reason many more modules are included. Modules I do not use at all. Things like PDF, StateMachine etc. I have scanned the codebase many times, there is not a single mention/use of any of these modules in my C++ or QML code. Finally, on the second run linuxdeploy-plugin-qt scans also already existing files in AppDir/usr/lib and then tried to satisfy even more dependencies which end up with a failure to find libmimerapi.so.
A workaround is to delete contents of AppDir/usr/lib before running linuxdeploy. This still deploys many unwanted Qt modules, but it finishes the AppImage
I got the same problem, and the workaround works well! Thanks!
Activity
Zaraka commentedon Nov 11, 2023
As I was digging around I have noticed, for some reason many more modules are included. Modules I do not use at all. Things like PDF, StateMachine etc. I have scanned the codebase many times, there is not a single mention/use of any of these modules in my C++ or QML code.
Finally, on the second run linuxdeploy-plugin-qt scans also already existing files in AppDir/usr/lib and then tried to satisfy even more dependencies which end up with a failure to find libmimerapi.so.
A workaround is to delete contents of AppDir/usr/lib before running linuxdeploy. This still deploys many unwanted Qt modules, but it finishes the AppImage
TheAssassin commentedon Dec 10, 2023
Something in your bundle must link to Qt6Sql. That's the only reason why this plugin would start shipping those files. Please share a complete(!) log.
That said, PRs welcome for your feature proposal. We should track both things separately. So please open a new issue with your build log.
Add --exclude-library option to standalone version
Add --exclude-library option to standalone version
Add --exclude-library option to standalone version
Add --exclude-library option to standalone version
Add --exclude-library option to standalone version
James-JLC commentedon May 29, 2025
I got the same problem, and the workaround works well! Thanks!
Add --exclude-library option to standalone version
Add --exclude-library option to standalone version
Add --exclude-library option to standalone version
dantti commentedon Aug 19, 2025
This can be closed now