Bug 500150 - kimageformats 6.11 introduces a dependency on Qt 6.8
Summary: kimageformats 6.11 introduces a dependency on Qt 6.8
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kimageformats
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.11.0
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-15 21:58 UTC by Aurélien COUDERC
Modified: 2025-02-16 08:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien COUDERC 2025-02-15 21:58:35 UTC
Dear Maintainer,

kimageformats 6.11 introduced a dependency on Qt 6.8.
Due to this commit [1] it makes use of QColorSpace::.whitePoint() and QColorSpace::Primaries::Bt2020 which were introduced in Qt 6.8.

I’m not sure whether this is intentional but since the release notes mention Qt 6.5 as a minimum version I guess not ?


[1] https://invent.kde.org/frameworks/kimageformats/-/commit/397957a976b330284f4fceb6fc9c56ed7d7536cb


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Debian Unstable (linux 6.12.13)
KDE Plasma Version:  6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Relevant part of the build logs with Qt 6.7.2 :

/build/package/package/src/imageformats/jxl.cpp: In member function ‘virtual bool QJpegXLHandler::write(const QImage&)’:
/build/package/package/src/imageformats/jxl.cpp:1332:59: error: ‘class QColorSpace’ has no member named ‘whitePoint’
 1332 |                 const QPointF whiteP = image.colorSpace().whitePoint();
      |                                                           ^~~~~~~~~~
/build/package/package/src/imageformats/jxl.cpp:1371:46: error: ‘Bt2020’ is not a member of ‘QColorSpace::Primaries’
 1371 |                 case QColorSpace::Primaries::Bt2020:
      |                                              ^~~~~~
/build/package/package/src/imageformats/jxl.cpp: In member function ‘bool QJpegXLHandler::extractBox(QByteArray&, size_t)’:
/build/package/package/src/imageformats/jxl.cpp:2010:45: warning: unused parameter ‘output’ [-Wunused-parameter]
 2010 | bool QJpegXLHandler::extractBox(QByteArray &output, size_t container_size)
      |                                 ~~~~~~~~~~~~^~~~~~
/build/package/package/src/imageformats/jxl.cpp:2010:60: warning: unused parameter ‘container_size’ [-Wunused-parameter]
 2010 | bool QJpegXLHandler::extractBox(QByteArray &output, size_t container_size)
      |                                                     ~~~~~~~^~~~~~~~~~~~~~
make[3]: *** [src/imageformats/CMakeFiles/kimg_jxl.dir/build.make:102: src/imageformats/CMakeFiles/kimg_jxl.dir/jxl.cpp.o] Error 1
m
Comment 2 Aurélien COUDERC 2025-02-15 23:39:09 UTC
Wow that was quick. :)

This leaves the issue with case QColorSpace::Primaries::Bt2020: line 1378 though, no ?

(I haven’t actually tried rebuilding with just your commit yet)
Comment 3 Albert Astals Cid 2025-02-15 23:49:08 UTC
> This leaves the issue with case QColorSpace::Primaries::Bt2020: line 1378 though, no ?

No?
Comment 4 Aurélien COUDERC 2025-02-16 08:15:23 UTC
Obviously not. I made that comment much to late in my day.

Thanks.