Bug 510191 - gui_digikamautotagassignment_obj.dir/all] Error 2 Build Error
Summary: gui_digikamautotagassignment_obj.dir/all] Error 2 Build Error
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (other bugs)
Version First Reported In: 8.8.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-03 05:55 UTC by pascal lacroix
Modified: 2025-10-03 12:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.8.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-10-03 05:55:54 UTC
Build failed with this error : 

```log*

/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::finder()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:163:79: error: 'QString::QString(const char*)' is private within this context
  163 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qhashfunctions.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringlist.h:41,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qcolor.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QImage:1,
                 from /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/autotagspipelinebase.h:24:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::loader()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:242:79: error: 'QString::QString(const char*)' is private within this context
  242 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::extractor()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:330:79: error: 'QString::QString(const char*)' is private within this context
  330 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::classifier()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:465:79: error: 'QString::QString(const char*)' is private within this context
  465 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::writer()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:516:79: error: 'QString::QString(const char*)' is private within this context
  516 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
make[3]: *** [core/libs/tags/CMakeFiles/gui_digikamautotagassignment_obj.dir/build.make:158: core/libs/tags/CMakeFiles/gui_digikamautotagassignment_obj.dir/autoassignment/pipelines/object/autotagspipelineobject.cpp.o] Error 1
make[3]: Leaving directory '/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030706/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:14848: core/libs/tags/CMakeFiles/gui_digikamautotagassignment_obj.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

```
INFORMATION

OS: Linux Mint 22.2 x86_64 
Environnement de développement de KDE 
Version 5.115.0
Qt 
Version 5.15.13 (Compilé avec 5.15.13)


ADDITIONAL INFORMATION

My last nacely build was :  ea92c3b5
Comment 1 caulier.gilles 2025-10-03 06:00:27 UTC
oups. It's my fault: i forget a %1 in the string. However, It compile without error here, why???

I will fix it.

Gilles Caulier
Comment 2 caulier.gilles 2025-10-03 06:08:59 UTC
Git commit dca0629ba0a307bcb540d15151fd2be6bab81a1e by Gilles Caulier.
Committed on 03/10/2025 at 06:08.
Pushed by cgilles into branch 'master'.

Fix missing %1 in QString thread names concatenation

M  +3    -3    core/libs/aitoolspipeline/aitoolspipeline.cpp
M  +5    -5    core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp
M  +5    -5    core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp
M  +3    -3    core/utilities/facemanagement/pipelines/edit/facepipelineedit.cpp
M  +5    -5    core/utilities/facemanagement/pipelines/recognize/facepipelinerecognize.cpp
M  +2    -2    core/utilities/facemanagement/pipelines/reset/facepipelinereset.cpp
M  +4    -4    core/utilities/facemanagement/pipelines/retrain/facepipelineretrain.cpp

https://invent.kde.org/graphics/digikam/-/commit/dca0629ba0a307bcb540d15151fd2be6bab81a1e
Comment 3 caulier.gilles 2025-10-03 06:09:51 UTC
It must compile now with my last commit.
Comment 4 Maik Qualmann 2025-10-03 06:24:29 UTC
Pascal compile with Qt5, here with Qt6 there was no error message either.

Maik
Comment 5 pascal lacroix 2025-10-03 07:47:49 UTC
Try compiling with this fix, but this error seems partialy corrected :  ```log* /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::finder()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:163:81: error: 'QString::QString(const char*)' is private within this context
  163 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags%1").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qhashfunctions.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringlist.h:41,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qcolor.h:46,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QImage:1,
                 from /mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/autotagspipelinebase.h:24:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::loader()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:242:81: error: 'QString::QString(const char*)' is private within this context
  242 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags%1").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::extractor()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:330:81: error: 'QString::QString(const char*)' is private within this context
  330 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags%1").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::classifier()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:465:81: error: 'QString::QString(const char*)' is private within this context
  465 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags%1").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp: In member function 'virtual bool Digikam::AutotagsPipelineObject::writer()':
/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp:516:81: error: 'QString::QString(const char*)' is private within this context
  516 |     ActionThreadBase::setCurrentThreadName(QString::fromLatin1("Autotags%1").arg(__FUNCTION__));       // To customize thread name
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:970:5: note: declared private here
  970 |     QString(const char *ch);
      |     ^~~~~~~
make[3]: *** [core/libs/tags/CMakeFiles/gui_digikamautotagassignment_obj.dir/build.make:158: core/libs/tags/CMakeFiles/gui_digikamautotagassignment_obj.dir/autoassignment/pipelines/object/autotagspipelineobject.cpp.o] Error 1
make[3]: Leaving directory '/mnt/2c98cfab-4320-4ff2-b8d7-f2da522cc741/digikam-devel/mygit/digikam-8.7.0-dev-202510030931/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:14848: core/libs/tags/CMakeFiles/gui_digikamautotagassignment_obj.dir/all] Error 2  ```
Comment 6 caulier.gilles 2025-10-03 09:17:38 UTC
Ah yes, now i seen. 

.arg(__FUNCTION__) must be .arg(QLatin1String(__FUNCTION__))

I will fix it

Gilles
Comment 7 caulier.gilles 2025-10-03 09:22:25 UTC
Git commit b581c36638ed82ae117ffa4e6f15b4b020e6ebd7 by Gilles Caulier.
Committed on 03/10/2025 at 09:21.
Pushed by cgilles into branch 'master'.

fix Qt5 compilation

M  +3    -3    core/libs/aitoolspipeline/aitoolspipeline.cpp
M  +5    -5    core/libs/tags/autoassignment/pipelines/object/autotagspipelineobject.cpp
M  +5    -5    core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp
M  +3    -3    core/utilities/facemanagement/pipelines/edit/facepipelineedit.cpp
M  +5    -5    core/utilities/facemanagement/pipelines/recognize/facepipelinerecognize.cpp
M  +2    -2    core/utilities/facemanagement/pipelines/reset/facepipelinereset.cpp
M  +4    -4    core/utilities/facemanagement/pipelines/retrain/facepipelineretrain.cpp
M  +1    -1    core/utilities/setup/misc/ocvocldnntestdlg.cpp

https://invent.kde.org/graphics/digikam/-/commit/b581c36638ed82ae117ffa4e6f15b4b020e6ebd7
Comment 8 pascal lacroix 2025-10-03 12:27:59 UTC
Thanks, commit b581c366 build and run nicely now on Linux Mint 22.2 x86_64 .