Skip to content

Add option for ignoring Qt modules #150

Open

Description

@Zaraka

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:

  1. Explicitly disable Qt modules for linking
  2. Probably also explicitly disable library files for dependencies if I want to include Qt6Sql module anyway

Activity

  1. Zaraka commented on Nov 11, 2023

    @Zaraka
    Author

    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

  2. TheAssassin commented on Dec 10, 2023

    @TheAssassin
    Member

    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.

  3. James-JLC commented on May 29, 2025

    @James-JLC

    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!

  4. dantti commented on Aug 19, 2025

    @dantti
    Contributor

    This can be closed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions