kdewebkit compilation fails for Mobile profile in trunk

Andreas Pakulat apaku at gmx.de
Sat May 21 22:50:51 BST 2011


On 21.05.11 13:25:32, Dawit A wrote:
> 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.

Maybe that changed these days, but moc does not know anything about
preprocessor-defines - except for a few hardcoded ones. So if you want
moc to ignore some code, you'll possibly have to find another way.

Andreas

> 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