Bug 512928 - The compilation stops with an error in core_itemproperties_obj
Summary: The compilation stops with an error in core_itemproperties_obj
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (other bugs)
Version First Reported In: 9.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-04 07:48 UTC by pascal lacroix
Modified: 2025-12-25 10:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pascal lacroix 2025-12-04 07:48:18 UTC
Build failled with error :

``` txt* make core_itemproperties_obj 2>&1 | grep -A10 -B5 "error:\|Error:\|ERROR:"
                 from /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab_p.h:17,
                 from /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab.cpp:16:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qlabel.h:78:20: note: declared here
   78 |     const QPixmap *pixmap() const; // ### Qt 7: Remove function
      |                    ^~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab.cpp:382:50: error: request for member ‘isNull’ in ‘((Digikam::ItemPropertiesTab::Private*)((Digikam::ItemPropertiesTab*)this)->Digikam::ItemPropertiesTab::d)->Digikam::ItemPropertiesTab::Private::labelPick->QLabel::pixmap()’, which is of pointer type ‘const QPixmap*’ (maybe you meant to use ‘->’ ?)
  382 |     bool hasPickLabel  = !d->labelPick->pixmap().isNull();
      |                                                  ^~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab.cpp:387:48: warning: ‘const QPixmap* QLabel::pixmap() const’ is deprecated: Use the other overload which returns QPixmap by-value [-Wdeprecated-declarations]
  387 |     bool hasColorLabel = !d->labelColor->pixmap().isNull();
      |                           ~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qlabel.h:78:20: note: declared here
   78 |     const QPixmap *pixmap() const; // ### Qt 7: Remove function
      |                    ^~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab.cpp:387:51: error: request for member ‘isNull’ in ‘((Digikam::ItemPropertiesTab::Private*)((Digikam::ItemPropertiesTab*)this)->Digikam::ItemPropertiesTab::d)->Digikam::ItemPropertiesTab::Private::labelColor->QLabel::pixmap()’, which is of pointer type ‘const QPixmap*’ (maybe you meant to use ‘->’ ?)
  387 |     bool hasColorLabel = !d->labelColor->pixmap().isNull();
      |                                                   ^~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab.cpp:392:49: warning: ‘const QPixmap* QLabel::pixmap() const’ is deprecated: Use the other overload which returns QPixmap by-value [-Wdeprecated-declarations]
  392 |     bool hasRating     = !d->labelRating->pixmap().isNull();
      |                           ~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qlabel.h:78:20: note: declared here
   78 |     const QPixmap *pixmap() const; // ### Qt 7: Remove function
      |                    ^~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/core/libs/properties/itempropertiestab.cpp:392:52: error: request for member ‘isNull’ in ‘((Digikam::ItemPropertiesTab::Private*)((Digikam::ItemPropertiesTab*)this)->Digikam::ItemPropertiesTab::d)->Digikam::ItemPropertiesTab::Private::labelRating->QLabel::pixmap()’, which is of pointer type ‘const QPixmap*’ (maybe you meant to use ‘->’ ?)
  392 |     bool hasRating     = !d->labelRating->pixmap().isNull();
      |                                                    ^~~~~~
make[3]: *** [core/libs/properties/CMakeFiles/core_itemproperties_obj.dir/build.make:116 : core/libs/properties/CMakeFiles/core_itemproperties_obj.dir/itempropertiestab.cpp.o] Erreur 1
make[3] : on quitte le répertoire « /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/obj-x86_64-linux-gnu »
make[2]: *** [CMakeFiles/Makefile2:12617 : core/libs/properties/CMakeFiles/core_itemproperties_obj.dir/all] Erreur 2
make[2] : on quitte le répertoire « /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/obj-x86_64-linux-gnu »
make[1]: *** [CMakeFiles/Makefile2:12624 : core/libs/properties/CMakeFiles/core_itemproperties_obj.dir/rule] Erreur 2
make[1] : on quitte le répertoire « /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.8.0-dev-202512040742/obj-x86_64-linux-gnu »
make: *** [Makefile:1690 : core_itemproperties_obj] Erreur 2
```

Linux mint 22-2

Environnement de développement de KDE 
Version 5.115.0

Qt 
Version 5.15.13 (Compilé avec 5.15.13)

ADDITIONAL INFORMATION

My last nicely build was from december 3
Comment 1 caulier.gilles 2025-12-04 08:56:17 UTC
Git commit 5ceb4824e3ec1c7a8bcfd4baacf54375ecfa47ed by Gilles Caulier.
Committed on 04/12/2025 at 08:55.
Pushed by cgilles into branch 'master'.

Fix Qt5 broken compilation
FIXED-IN: 8.9.0

M  +1    -1    NEWS
M  +28   -0    core/libs/properties/itempropertiestab.cpp

https://invent.kde.org/graphics/digikam/-/commit/5ceb4824e3ec1c7a8bcfd4baacf54375ecfa47ed