[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KF5 with qmake problems
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2015-04-24 7:54:09
Message-ID: CAExHGmT+2mj6GCatLii+3aYVpfrFk8sY82RSBMmyYTni4ivoqQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

On Fri, Apr 24, 2015 at 8:48 AM, Kevin Funk <kfunk@kde.org> 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

[Attachment #5 (text/html)]

<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr \
24, 2015 at 8:48 AM, Kevin Funk <span dir="ltr">&lt;<a href="mailto:kfunk@kde.org" \
target="_blank">kfunk@kde.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On Friday, April 24, 2015 17:24:34 Christian \
Gagneraud wrote:<br> &gt; Hi there,<br>
&gt;<br>
&gt; I&#39;ve just installed kubuntu-15.04, and I&#39;m trying to run this \
tutorial<br> &gt; [1]. I&#39;m using stock Qt5, KF5 and Qt Creator.<br>
&gt;<br>
&gt; In my .pro file, I have &quot;QT += KXmlGui KI18n KTextWidgets&quot;, but \
qmake<br> &gt; complains with &quot;Project ERROR: Unknown module(s) in QT: \
I18n&quot;, if I<br> &gt; remove KTextWidgets, then qmake is happy (same happens with \
QT += KParts).<br> &gt;<br>
&gt; Did I missed something or is it a KF5 or KUbuntu bug?<br>
<br>
</span>Do you have the development packages for those libraries installed?<br>
<br>
I.e. on Ubuntu:<br>
- libkf5textwidgets-dev<br>
- libkf5i18n-dev<br>
- libkf5xmlgui-dev<br>
<br>
<br>
For helping you to debug your issue it may help to understand how this all<br>
works:<br>
<br>
So when you do &#39;QT += KTextWidgets&#39;, qmake needs to find a file called<br>
&#39;qt_KTextWidgets.pri&#39; somewhere within the QTDIR. I.e. on Ubuntu, this \
should<br> be /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_KTextWidgets.pri.<br>
<br>
Make sure these files are around, by installing the resp. development \
packages.<br></blockquote><div><br></div><div>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</div><div><br></div><div>As a workaround just \
replace I18n in the file with \
KI18n.</div><div><br></div><div>Andreas</div></div></div></div>


[Attachment #6 (text/plain)]


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic