Bug 480505 - Compilation error
Summary: Compilation error
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-HTMLGallery (other bugs)
Version First Reported In: 8.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-29 20:47 UTC by nucleo
Modified: 2024-01-29 20:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nucleo 2024-01-29 20:47:50 UTC
SUMMARY
digiKam 8.2.0 compilation failed for Fedora Rawhide (40)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version:  5.248.0
Qt Version:  6.6.1

/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp: In member function ‘QString DigikamGenericHtmlGalleryPlugin::GalleryTheme::authorName() const’:
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp:284:33: error: ‘QString::QString(const char*)’ is private within this context
  284 |     return d->desktopFile->group(AUTHOR_GROUP).readEntry("Name");
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/QString:1,
                 from /builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.h:21,
                 from /builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp:16:
/usr/include/qt6/QtCore/qstring.h:913:5: note: declared private here
  913 |     QString(const char *ch);
      |     ^~~~~~~
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp: In member function ‘QString DigikamGenericHtmlGalleryPlugin::GalleryTheme::authorUrl() const’:
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp:289:33: error: ‘QString::QString(const char*)’ is private within this context
  289 |     return d->desktopFile->group(AUTHOR_GROUP).readEntry("Url");
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qstring.h:913:5: note: declared private here
  913 |     QString(const char *ch);
      |     ^~~~~~~
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp: In member function ‘QString DigikamGenericHtmlGalleryPlugin::GalleryTheme::previewName() const’:
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp:294:33: error: ‘QString::QString(const char*)’ is private within this context
  294 |     return d->desktopFile->group(PREVIEW_GROUP).readEntry("Name");
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qstring.h:913:5: note: declared private here
  913 |     QString(const char *ch);
      |     ^~~~~~~
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp: In member function ‘QString DigikamGenericHtmlGalleryPlugin::GalleryTheme::previewUrl() const’:
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp:299:33: error: ‘QString::QString(const char*)’ is private within this context
  299 |     return d->desktopFile->group(PREVIEW_GROUP).readEntry("Url");
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qstring.h:913:5: note: declared private here
  913 |     QString(const char *ch);
      |     ^~~~~~~
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp: In member function ‘bool DigikamGenericHtmlGalleryPlugin::GalleryTheme::allowNonsquareThumbnails() const’:
/builddir/build/BUILD/digikam-8.2.0/core/dplugins/generic/tools/htmlgallery/generator/gallerytheme.cpp:304:33: error: ‘QString::QString(const char*)’ is private within this context
  304 |     return d->desktopFile->group(OPTIONS_GROUP).readEntry("Allow-non-square-thumbnails", false);
      |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qstring.h:913:5: note: declared private here
  913 |     QString(const char *ch);
      |     ^~~~~~~
Comment 1 Maik Qualmann 2024-01-29 20:56:29 UTC
The problem has already been fixed for digiKam-8.3.0 with this commit:

https://invent.kde.org/graphics/digikam/-/commit/82c627923a8b85cbb1e97306337fd6f1d85e4c3d

Maik