On Friday, April 24, 2015 08:48:53 Kevin Funk wrote: > On Friday, April 24, 2015 17:24:34 Christian Gagneraud wrote: > > Hi there, > > > > I've just installed kubuntu-15.04, and I'm trying to run this tutorial > > [1]. I'm using stock Qt5, KF5 and Qt Creator. > > > > In my .pro file, I have "QT += KXmlGui KI18n KTextWidgets", but qmake > > complains with "Project ERROR: Unknown module(s) in QT: I18n", if I > > remove KTextWidgets, then qmake is happy (same happens with QT += KParts). > > > > Did I missed something or is it a KF5 or KUbuntu bug?
Whoops. We've just found out this indeed a bug. In qmake terms, there's only 'KI18n', but no 'I18n'. qt_KTextWidgets.pri incorrectly references 'I18n', though. Here's the fix: http://quickgit.kde.org/?p=ktextwidgets.git&a=commitdiff&h=b83617d59b14941b1e26d295e9ea300301365321 You could apply the patch locally and be fine. Thanks for reporting. Cheers PS: @devs: We should have really used the 'KF5' prefix for all qmake module names here. Now there's an inconsistency in the naming scheme for the modules. Compare: KF5::Attica (CMake) - Attica (QMake) vs. KF5::I18n (CMake) - KI18n (QMake) To fix and to avoid SIC we could generate/install an additional set of .pri files for KF5 which prefixes every module with 'KF5'? > Do you have the development packages for those libraries installed? > > I.e. on Ubuntu: > - libkf5textwidgets-dev > - libkf5i18n-dev > - libkf5xmlgui-dev > > > For helping you to debug your issue it may help to understand how this all > works: > > So when you do 'QT += KTextWidgets', qmake needs to find a file called > 'qt_KTextWidgets.pri' somewhere within the QTDIR. I.e. on Ubuntu, this > should be > /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_KTextWidgets.pri. > > Make sure these files are around, by installing the resp. development > packages. > > Hope that helps > > > As a workaround, I'm doing this instead: > > INCLUDEPATH += /usr/include/KF5/KTextWidgets/ > > LIBS += -lKF5TextEditor > > INCLUDEPATH += /usr/include/KF5/KParts/ > > LIBS += -lKF5Parts > > > > Thx, > > Krys > > > > [1] > > http://thenoobietips.blogspot.co.nz/2014/06/kf5-tutorial-2-how-to-use-kxml > > gu iwindow.html > > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > > >> unsubscribe > > >> << -- Kevin Funk | kf...@kde.org | http://kfunk.org
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<