Bug 500941 - Fails to build after e77986c7
Summary: Fails to build after e77986c7
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kimageformats
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-02 09:52 UTC by daron439
Modified: 2025-03-02 13:44 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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