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

Is there a way to exclude libraries #108

Open
hhnaidi opened this issue May 19, 2022 · 3 comments
Open

Is there a way to exclude libraries #108

hhnaidi opened this issue May 19, 2022 · 3 comments

Comments

@hhnaidi
Copy link

hhnaidi commented May 19, 2022

I have a custom Qt installation that contains the debug version of Qt libraries, I didn't find any way to exclude them.

linuxdeploy has an exclude-library option but qt plugin hasn't this option.

Do you have any way to do that?

@TheAssassin
Copy link
Member

Not yet. We'd need to provide an environment variable that supplements the CLI option, and implement it both here and in linuxdeploy. PRs highly welcome!

@trumpton
Copy link

Suggested workaround is to call linuxdeploy twice, and remove the offending files once the qt plugin has performed its pass, and then exclude-libraries in the main linuxdeploy app on the second pass.

This approach can also be used to add application-specific data files into usr/share.

S.

# Create build-dir tree (don't create app image)
linuxdeploy --desktop-file APP.desktop --icon-file APP.png --appdir build-dir --executable APP --plugin qt

# Remove unwanted libnss files
/bin/rm -f build-dir/usr/lib/libnss*

# Copy application-specific data files from src/share to build-dir/usr/share/APP
mkdir -p build-dir/usr/share/APP
cp -R "src/share/*" "build-dir/usr/share/APP"

# Now create the output image
linuxdeploy --appdir build-dir --exclude-library "*libnss*" --output APP

@dantti
Copy link
Contributor

dantti commented Jun 19, 2024

FTR PR to fix this linuxdeploy/linuxdeploy#283

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
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

4 participants