kdewebkit compilation fails for Mobile profile in trunk

Dawit A adawit at kde.org
Sat May 21 18:25:32 BST 2011


No that is a moc issue. The code is properly @ifdef'ed out in the
code, but the generated moc file does not seem to exclude it. That is
why you get the message:

/home/arysin/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc:91:6:
error: prototype for ‘void
KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&)’ does not
match any in class ‘KGraphicsWebView’
/home/arysin/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.h:146:10:
error: candidate is: void
KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&, const
QString&)

Dunno why that would be... Perhaps whomever it is that added the
ifndef around that signal could comment.

On Sat, May 21, 2011 at 12:16 PM, Andriy Rysin <arysin at gmail.com> wrote:
> I just did a clean build and had the same result, seems like this method is
> used outside of deprecated namespace:
>
> #ifndef KDE_NO_DEPRECATED
>    KDE_DEPRECATED void selectionClipboardUrlPasted(const KUrl &url);
> #endif
>
>
> On 05/21/2011 11:04 AM, Dawit A wrote:
>>
>> Those classes have not changed from KDE 4.6. Most likely you need to
>> do a clean build. At lease a clean kdewebkit build.
>>
>> On Sat, May 21, 2011 at 10:59 AM, Andriy Rysin<arysin at gmail.com>  wrote:
>>>
>>> In file included from
>>> /home/arysin/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.cpp:85:0:
>>> /home/arysin/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc: In
>>> member
>>> function ‘virtual int KGraphicsWebView::qt_metacall(QMetaObject::Call,
>>> int,
>>> void**)’:
>>> /home/arysin/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc:79:87:
>>> error: no matching function for call to
>>> ‘KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&)’
>>> /home/arysin/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.h:146:10:
>>> note:
>>> candidate is: void KGraphicsWebView::selectionClipboardUrlPasted(const
>>> KUrl&, const QString&)
>>> In file included from
>>> /home/arysin/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.cpp:85:0:
>>> /home/arysin/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc: At
>>> global
>>> scope:
>>> /home/arysin/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc:91:6:
>>> error: prototype for ‘void
>>> KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&)’ does not
>>> match
>>> any in class ‘KGraphicsWebView’
>>> /home/arysin/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.h:146:10:
>>> error: candidate is: void
>>> KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&, const
>>> QString&)
>>>
>>>
>
>




More information about the kde-core-devel mailing list