Digikam git build error with Qt6

Gilles Caulier caulier.gilles at gmail.com
Tue Jan 16 13:23:48 GMT 2024


Hi,

This is not a compilation error, but a linking error with KDE shared
library which do not found symbols from Qt6. This do not have anything
with digiKam. You must check your system, especially the Qt6
installation.

Best

Gilles Caulier

Le mar. 16 janv. 2024 à 14:21, <leoutation at gmx.fr> a écrit :
>
> Hi
> I get this build error when i try to build with Qt6 and KF6
> Conditions:
> Arch system
> git repo
> Cmake 3.28.1
> extra-cmake-modules 5.248 (KF6)
> Qt 6.6.1
> kf6 5.248
> Glibc 2.38-7
>
>   91%] Built target Generic_MediaWiki_Plugin
> [ 91%] Built target Generic_MediaServer_Plugin
> /usr/bin/ld: /usr/lib/libKF6ConfigCore.so.5.248.0: undefined reference
> to `compareThreeWay(QDateTime const&, QDateTime const&)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `QtPrivate::QStringList_indexOf(QList<QString> const&, QStringView, long
> long, Qt::CaseSensitivity)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6WidgetsAddons.so.5.248.0: undefined
> reference to `comparesEqual(QTimeZone const&, QTimeZone const&)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6CoreAddons.so.5.248.0: undefined reference
> to `QUrl::fromEncoded(QByteArrayView, QUrl::ParsingMode)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6WidgetsAddons.so.5.248.0: undefined
> reference to `QLocale::toDate(QString const&, QString const&, int)
> const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6GuiAddons.so.6: undefined reference to
> `QtPrivate::QStringList_indexOf(QList<QString> const&, QLatin1String,
> long long, Qt::CaseSensitivity)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `QLocale::name(QLocale::TagSeparator) const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6WidgetsAddons.so.5.248.0: undefined
> reference to `QDateTime::setTimeZone(QTimeZone const&,
> QDateTime::TransitionResolution)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6ConfigWidgets.so.5.248.0: undefined
> reference to `QString::mid(long long, long long) &&@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6GuiAddons.so.6: undefined reference to
> `QLocale::toDate(QString const&, QLocale::FormatType, int) const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `qt_qFindChild_helper(QObject const*, QAnyStringView, QMetaObject
> const&, QFlags<Qt::FindChildOption>)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6ConfigCore.so.5.248.0: undefined reference
> to `QDateTime::QDateTime(QDate, QTime,
> QDateTime::TransitionResolution)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6CoreAddons.so.5.248.0: undefined reference
> to `QByteArray::mid(long long, long long) const &@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `qt_version_tag at Qt_6.7'
> /usr/bin/ld: /usr/lib/libKF6FileMetaData.so.3: undefined reference to
> `QLocale::toDateTime(QString const&, QLocale::FormatType, int) const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6CoreAddons.so.5.248.0: undefined reference
> to `QMetaObject::invokeMethodImpl(QObject*, QtPrivate::QSlotObjectBase*,
> Qt::ConnectionType, long long, void const* const*, char const* const*,
> QtPrivate::QMetaTypeInterface const* const*)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6WidgetsAddons.so.5.248.0: undefined
> reference to `QDateTime::setDate(QDate,
> QDateTime::TransitionResolution)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6WidgetsAddons.so.5.248.0: undefined
> reference to `Qt::mightBeRichText(QAnyStringView)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `qt_qFindChildren_helper(QObject const*, QAnyStringView, QMetaObject
> const&, QList<void*>*, QFlags<Qt::FindChildOption>)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `QLocale::uiLanguages(QLocale::TagSeparator) const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6XmlGui.so.5.248.0: undefined reference to
> `QString::mid(long long, long long) const &@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6I18n.so.5.248.0: undefined reference to
> `QLocale::bcp47Name(QLocale::TagSeparator) const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6FileMetaData.so.3: undefined reference to
> `QDateTime::fromString(QString const&, QStringView, int, QCalendar)@Qt_6'
> /usr/bin/ld: /usr/lib/libKF6ConfigCore.so.5.248.0: undefined reference
> to `QMetaObject::indexOfEnumerator(QByteArrayView) const at Qt_6'
> /usr/bin/ld: /usr/lib/libKF6WidgetsAddons.so.5.248.0: undefined
> reference to `QDateTime::setTime(QTime,
> QDateTime::TransitionResolution)@Qt_6'
> collect2: error: ld returned 1 exit status
> make[2]: *** [core/showfoto/CMakeFiles/showfoto.dir/build.make:861:
> bin/showfoto] Error 1
> make[1]: *** [CMakeFiles/Makefile2:25909:
> core/showfoto/CMakeFiles/showfoto.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 91%] Built target Generic_Panorama_Plugin_autogen
> [ 91%] Built target digikamgui
> make: *** [Makefile:136: all] Error 2
>
>
> --
> Maderios


More information about the Digikam-users mailing list