https://bugs.kde.org/show_bug.cgi?id=428276
Bug ID: 428276 Summary: KContacts cannot be used in qmake project Product: frameworks-kcontacts Version: git Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kdepim-b...@kde.org Reporter: a...@piggz.co.uk Target Milestone: --- SUMMARY When including KContacts in a qmake project, it tried to pull in the module CoreAddons and not KCoreAddons. STEPS TO REPRODUCE 1. In a qmake project, add QT += KContacts 2. Run qmake 3. See error due to non existent CoreAddons library OBSERVED RESULT EXPECTED RESULT qmake finishes successfully. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Error is on thie line https://invent.kde.org/frameworks/kcontacts/-/blob/master/src/CMakeLists.txt#L147 IRC Discussion: [14:48] <piggz> hi, im wondering if this is an error in KContacts library..... [14:48] <piggz> cat /usr/lib64/qt5/mkspecs/modules/qt_KCoreAddons.pri [14:48] <piggz> QT.KContacts.depends = CoreAddons [14:49] <piggz> Should that CoreAddons actually be KCoreAddons ? [14:49] <piggz> cat /usr/lib64/qt5/mkspecs/modules/qt_KCoreAddons.pri [14:49] <piggz> QT.KCoreAddons.module = KF5CoreAddons [14:49] <piggz> or maybe kf5coreaddons [14:49] <piggz> in any case, if i include kcontacts in a qt project, it fails qmake due to missing coreaddons [14:52] <nicofee> piggz: according to https://api.kde.org/frameworks/kcoreaddons/html/index.html KCoreAddons is correct [14:53] <piggz> nicofee: so, its a bug in the kconacts .pri .... i guess noone tried such a thing before? :D [14:53] <krop> we're not crazy enough to use qmake unless forced to [14:53] <krop> :) [14:53] <nicofee> yeah, probably no one ever tried [14:54] <piggz> according to https://api.kde.org/frameworks/kcoreaddons/html/index.html ..... [14:54] <nicofee> piggz: https://invent.kde.org/frameworks/kcontacts/-/blob/master/src/CMakeLists.txt#L147 [14:54] <piggz> Use with QMake [14:54] <piggz> QT += KCoreAddons [14:54] <piggz> ;) [14:55] <nicofee> Probably only needs s/CoreAddons/KCoreAddons/ in that call [15:00] <piggz> yeah -- You are receiving this mail because: You are watching all bug changes.