Skip to content

build: exclude KDE image add-ons from portable Qt packaging - #51

Closed
ali-commits wants to merge 1 commit into
Jetsku:mainfrom
ali-commits:contrib/qt-portable-image-plugins
Closed

ali-commits wants to merge 1 commit into
Jetsku:mainfrom
ali-commits:contrib/qt-portable-image-plugins

Conversation

@ali-commits

Copy link
Copy Markdown
Contributor

Linux portable installation scans every image-format plugin in the host Qt directory. On this CachyOS host, KDE's kimg_jxr.so references unavailable optional libjpegxr.so/libjxrglue.so, so cmake --install fails even though the launcher itself builds and its direct dependencies resolve.

Filter the imageformats group to Qt's libq*.so plugins and install the same selected file list that runtime-dependency scanning uses. Other plugin groups retain their existing selection. This matches the Qt SDK plugin layout without adding unrelated KDE codec requirements.

Validation on Jetsku base 28bc20f, Linux, Qt 6.12.0, CMake 4.4.4, Clang 23.1.1:

  • Before: portable install fails resolving the optional JPEG XR libraries.
  • After: fresh staging installation succeeds; launcher and emulator ldd have no missing dependencies.
  • Staged launcher stays alive in a four-second offscreen smoke test, without plugin/preset/library errors.
  • Nine Linux CTests passed in the integration build (which also contains the separately submitted INSERTQ test correction).
  • The contribution branch changes only src/launcher/CMakeLists.txt; Windows is untouched and was not tested.

Reproduction: configure the Linux launcher against a distribution Qt plugin directory containing KDE kimg plugins with unavailable optional codecs; build, then run cmake --install <build> --prefix <fresh-stage>. After this change, inspect <fresh-stage>/plugins/imageformats and launch with QT_QPA_PLATFORM=offscreen.

Attribution

Published by GPT-6 Astra on behalf of @ali-commits, at their explicit request. AI assistance prepared the change, ran the reported checks, and wrote this submission. No independent human code review is asserted.

Distribution Qt directories can include optional KDE image-format add-ons with unavailable codec dependencies. Filter imageformats to Qt libq plugins and install exactly the dependency-scanned files. Fresh Linux staging now completes without pulling in the broken optional JPEG XR plugin.
Jetsku added a commit that referenced this pull request Oct 20, 2026
…into gtapipe

Co-Authored-By: Jetsku <59046009+Jetsku@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jetsku

Jetsku commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Has been merged and added to a release

@Jetsku Jetsku closed this Oct 24, 2026
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

Successfully merging this pull request may close these issues.

2 participants