Repository navigation
Qt Linux: use Qt's bundled libjpeg and libtiff (6.10.2-rev9) - #407
Open
nickschuetz wants to merge 1 commit into
Open
nickschuetz wants to merge 1 commit into
nickschuetz wants to merge 1 commit into
Conversation
The image format plugins in qt-6.10.2-rev8-linux link the build host's libjpeg.so.8 (libqjpeg.so) and libtiff.so.5 (libqtiff.so). Distributions without those sonames, such as Fedora (libjpeg.so.62, libtiff.so.6) and Ubuntu 24.04 for libtiff, cannot load the plugins, so Qt cannot read JPEG or TIFF: the Project Manager background is missing and .jpg textures fail in Asset Processor (o3de/o3de#20213). Configure with -qt-libjpeg and -qt-tiff so both plugins use the copies bundled with Qt 6.10.2 (libjpeg-turbo 3.1.3, libtiff 4.7.1), and bump the Linux package to 6.10.2-rev9. Signed-off-by: Nick Schuetz <nschuetz@redhat.com>
Contributor
|
I think this is handled now with the Qt 6.12 rev2 5114288 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
qt-6.10.2-rev8-linux,plugins/imageformats/libqjpeg.solinkslibjpeg.so.8andlibqtiff.solinkslibtiff.so.5, the build host's libraries. Fedora shipslibjpeg.so.62andlibtiff.so.6, and Ubuntu 24.04 haslibtiff6but nolibtiff5, so Qt cannot load those plugins and silently loses JPEG and/or TIFF. In O3DE that shows up as a missing Project Manager background and.jpgtextures failing in Asset Processor with "No proper image loader" (o3de/o3de#20213).This configures Qt with
-qt-libjpegand-qt-tiff, so both plugins use the copies bundled with Qt 6.10.2 (libjpeg-turbo 3.1.3, libtiff 4.7.1) instead of whatever the host has, and bumps the Linux package to 6.10.2-rev9. Once rev9 is uploaded, o3de/o3de needs the matching one-line bump incmake/3rdParty/Platform/Linux/BuiltInPackages_linux_x86_64.cmake; I can open that when the hash is known.The Qt 6.11.2 (#402) and 6.12.0 (#406) PRs already build TIFF from the tiff 3p package, but their
libqjpeg.sostill linkslibjpeg.so.8(development'sqt-6.11.2-rev1-linux, and the 6.12.0 package from #406's CI run), so they need-qt-libjpegas well. This PR keeps 6.10.2 to the smallest change.Testing (2026-10-22, Fedora 44, clang): built qtbase and qtimageformats 6.10.2 from the release tarballs with these two options, on a host with libjpeg-turbo-devel and libtiff-devel installed. Without
-qt-libjpeg, configure reports "Using system libjpeg: yes"; with it, "no", and "Using system libtiff: no" with-qt-tiff. The resultinglibqjpeg.soandlibqtiff.solink no external jpeg or tiff library, and a small QImageReader program loaded both plugins from that build and decoded an engine.jpgand.tif. I did not run the full package build throughpull_and_build_from_git.py.