Bug 500941

Summary: Fails to build after e77986c7
Product: [Frameworks and Libraries] frameworks-kimageformats Reporter: daron439
Component: generalAssignee: Alex Merry <alex.merry>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, kdelibs-bugs-null, mircomir
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description daron439 2025-03-02 09:52:38 UTC
SUMMARY
/builddir/build/BUILD/kf6-kimageformats-6.12.0_10.gite77986c-build/kf6-kimageformats-6.12.0~10.gite77986c/src/imageformats/heif.cpp: In member function ‘bool HEIFHandler::
write_helper(const QImage&)’:
/builddir/build/BUILD/kf6-kimageformats-6.12.0_10.gite77986c-build/kf6-kimageformats-6.12.0~10.gite77986c/src/imageformats/heif.cpp:330:30: error: ‘QString::QString(const 
char*)’ is private within this context
  330 |         auto xmp = image.text(META_KEY_XMP_ADOBE);
      |                    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qhashfunctions.h:9,
                 from /usr/include/qt6/QtCore/qlist.h:10,
                 from /usr/include/qt6/QtCore/qstringlist.h:5,
                 from /usr/include/qt6/QtGui/qcolor.h:10,
                 from /usr/include/qt6/QtGui/qimage.h:8,
                 from /usr/include/qt6/QtGui/QImage:1,
                 from /builddir/build/BUILD/kf6-kimageformats-6.12.0_10.gite77986c-build/kf6-kimageformats-6.12.0~10.gite77986c/src/imageformats/heif_p.h:14,
                 from /builddir/build/BUILD/kf6-kimageformats-6.12.0_10.gite77986c-build/kf6-kimageformats-6.12.0~10.gite77986c/src/imageformats/heif.cpp:10:
/usr/include/qt6/QtCore/qstring.h:1014:5: note: declared private here
 1014 |     QString(const char *ch);
      |     ^~~~~~~
/builddir/build/BUILD/kf6-kimageformats-6.12.0_10.gite77986c-build/kf6-kimageformats-6.12.0~10.gite77986c/src/imageformats/heif.cpp: In member function ‘bool HEIFHandler::
ensureDecoder()’:
/builddir/build/BUILD/kf6-kimageformats-6.12.0_10.gite77986c-build/kf6-kimageformats-6.12.0~10.gite77986c/src/imageformats/heif.cpp:954:44: error: ‘QString::QString(const 
char*)’ is private within this context
  954 |                     m_current_image.setText(META_KEY_XMP_ADOBE, QString::fromUtf8(ba));
      |                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qstring.h:1014:5: note: declared private here
 1014 |     QString(const char *ch);
      |     ^~~~~~~

STEPS TO REPRODUCE
1. Build


OBSERVED RESULT
Fails to build

EXPECTED RESULT
Builds fine

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2025-03-02 11:09:34 UTC
Mirco please fix
Comment 2 Bug Janitor Service 2025-03-02 12:50:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kimageformats/-/merge_requests/343
Comment 3 Mirco Miranda 2025-03-02 13:19:47 UTC
(In reply to Albert Astals Cid from comment #1)
> Mirco please fix

Should be fixed