kdewebkit fails to build with Mobile profile in trunk

Marijn Kruisselbrink mkruisselbrink at kde.org
Tue Jan 11 01:31:35 GMT 2011


On Monday, January 10, 2011 02:08:30 pm Dawit A wrote:
> On Sun, Dec 26, 2010 at 3:07 PM, Andriy Rysin <arysin at gmail.com> wrote:
> > Commenting out two deprecated methods helped but that's probably a wrong
> > solution.
> > 
> > In file included from
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.cpp:85:0:
> > /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc: In
> > member function 'virtual int
> > KGraphicsWebView::qt_metacall(QMetaObject::Call, int, void**)':
> > /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc:79:87:
> > error: no matching function for call to
> > 'KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&)'
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.h:146:10:
> > note: candidate is: void
> > KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&, const
> > QString&)
> > In file included from
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.cpp:85:0:
> > /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kgraphicswebview.moc: At
> > global scope:
> > /home/kdeuser/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/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kgraphicswebview.h:146:10:
> > error: candidate is: void
> > KGraphicsWebView::selectionClipboardUrlPasted(const KUrl&, const
> > QString&) In file included from
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kwebview.cpp:83:0:
> > /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kwebview.moc: In member
> > function 'virtual int KWebView::qt_metacall(QMetaObject::Call, int,
> > void**)':
> > /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kwebview.moc:83:87: error:
> > no matching function for call to
> > 'KWebView::selectionClipboardUrlPasted(const KUrl&)'
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kwebview.h:147:10: note:
> > candidate is: void KWebView::selectionClipboardUrlPasted(const KUrl&,
> > const QString&)
> > In file included from
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kwebview.cpp:83:0:
> > /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kwebview.moc: At global
> > scope: /home/kdeuser/kde/build/KDE/kdelibs/kdewebkit/kwebview.moc:122:6:
> > error: prototype for 'void KWebView::selectionClipboardUrlPasted(const
> > KUrl&)' does not match any in class 'KWebView'
> > /home/kdeuser/work/OSS/KDE/kdelibs/kdewebkit/kwebview.h:147:10: error:
> > candidate is: void KWebView::selectionClipboardUrlPasted(const KUrl&,
> > const QString&)
> 
> From the error message you posted can we presume that this is not a
> clean build ? It looks like the generated moc files are stale as far
> as I can tell.
No, this is probably with a clean build; the problem is that moc does not 
always properly handle #ifdef's, and we never could figure out why for some 
people the code as is does work correctly, while for others (including me) it 
fails to compile when building the Mobile profile. For my kdelibs-on-meego 
packages I ended up applying [1] to overcome this problem (although probably 
the reverse of that patch (i.e. commenting out the actual signal instead of 
the #ifndef lines) would have been better).

Marijn


[1] 
https://build.pub.meego.com/package/view_file?file=02_kdelibs_compile.patch&package=kdelibs&project=home%3Amkruisselbrink%3Akde&srcmd5=20a6530bdfdd79bd06c3ace11c7f0f96




More information about the kde-core-devel mailing list