From kde-devel Fri Apr 24 07:54:09 2015 From: Andreas Pakulat Date: Fri, 24 Apr 2015 07:54:09 +0000 To: kde-devel Subject: Re: KF5 with qmake problems Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=142986207102586 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0764440680729506373==" --===============0764440680729506373== Content-Type: multipart/alternative; boundary=001a11394c8e89c732051473b3e8 --001a11394c8e89c732051473b3e8 Content-Type: text/plain; charset=UTF-8 Hi, On Fri, Apr 24, 2015 at 8:48 AM, 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? > > 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. > The file is there, but it specified I18n as a dependency not KI18n. That suggests this is a bug in whatever generates that pri file (or the ktextwidget framework in case the file is stored in the repository permanently). It also seems that the KTextWidgets framework is the only one depending on the i18n framwork As a workaround just replace I18n in the file with KI18n. Andreas --001a11394c8e89c732051473b3e8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

On Fri, Apr 24, 2015 at 8:48 AM, Kevin Funk <kfunk@kde.org> w= rote:
On Friday, April 2= 4, 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 +=3D 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 +=3D KP= arts).
>
> Did I missed something or is it a KF5 or KUbuntu bug?

Do you have the development packages for those libraries installed?<= br>
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<= br> works:

So when you do 'QT +=3D KTextWidgets', qmake needs to find a file c= alled
'qt_KTextWidgets.pri' somewhere within the QTDIR. I.e. on Ubuntu, t= his 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 packa= ges.

The file is there, but it specifie= d I18n as a dependency not KI18n. That suggests this is a bug in whatever g= enerates that pri file (or the ktextwidget framework in case the file is st= ored in the repository permanently). It also seems that the KTextWidgets fr= amework is the only one depending on the i18n framwork

=
As a workaround just replace I18n in the file with KI18n.
Andreas
--001a11394c8e89c732051473b3e8-- --===============0764440680729506373== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline Cj4+IFZpc2l0IGh0dHA6Ly9tYWlsLmtkZS5vcmcvbWFpbG1hbi9saXN0aW5mby9rZGUtZGV2ZWwj dW5zdWIgdG8gdW5zdWJzY3JpYmUgPDwK --===============0764440680729506373==--