Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for ignoring Qt modules #150

Open
Zaraka opened this issue Nov 10, 2023 · 2 comments
Open

Add option for ignoring Qt modules #150

Zaraka opened this issue Nov 10, 2023 · 2 comments

Comments

@Zaraka
Copy link

Zaraka commented Nov 10, 2023

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
@Zaraka
Copy link
Author

Zaraka commented 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
Copy link
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.

dantti added a commit to dantti/linuxdeploy-plugin-qt that referenced this issue Jun 19, 2024
It would be useful to have the standalone version also
able to exclude-libraries, this helps with issues:

 linuxdeploy#153
 linuxdeploy#150
 linuxdeploy#110
 linuxdeploy#108
dantti added a commit to dantti/linuxdeploy-plugin-qt that referenced this issue Jun 19, 2024
It would be useful to have the standalone version also
able to exclude-libraries, this helps with issues:

 linuxdeploy#153
 linuxdeploy#150
 linuxdeploy#110
 linuxdeploy#108
dantti added a commit to dantti/linuxdeploy-plugin-qt that referenced this issue Aug 4, 2024
It would be useful to have the standalone version also
able to exclude-libraries, this helps with issues:

 linuxdeploy#153
 linuxdeploy#150
 linuxdeploy#110
 linuxdeploy#108
dantti added a commit to dantti/linuxdeploy-plugin-qt that referenced this issue Aug 11, 2024
It would be useful to have the standalone version also
able to exclude-libraries, this helps with issues:

 linuxdeploy#153
 linuxdeploy#150
 linuxdeploy#110
 linuxdeploy#108
dantti added a commit to dantti/linuxdeploy-plugin-qt that referenced this issue Oct 17, 2024
It would be useful to have the standalone version also
able to exclude-libraries, this helps with issues:

 linuxdeploy#153
 linuxdeploy#150
 linuxdeploy#110
 linuxdeploy#108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants