[webkit-qt] Qtwebkit-23 Build fails

Allan Sandfeld Jensen kde at carewolf.com
Wed Aug 29 15:26:20 PDT 2012


On Wednesday 29 August 2012, Andras Becsi wrote:
> Hi,
> 
> On 29 August 2012 00:53, Michael <dres-schmidt at t-online.de> wrote:
> >> 28.08.2012, 16:33, "Michael" <dres-schmidt at t-online.de>:
> >>> Hi All,
> >>> 
> >>> when using Visual Studio 2010 to build QtWebkit 2.3
> >>> fromhttps://gitorious.org/+qtwebkit-developers/webkit/qtwebkit-23 with
> >>> binaries/source Qt 4.8.2 installed,
> >>> 
> >>> i do get the following link errors:
> >>>         link /LIBPATH:"p:\qtwebkit-23\WebKitBuild\Debug\lib"
> >>>         /LIBPATH:"c:\Qt\4.8.2\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT
> >>>         /DEBUG /DLL /MANIFEST
> >>>         /MANIFESTFILE:"obj/debug\qmlwebkitplugind.intermediate.manifes
> >>>         t" /OUT:..\imports\QtWebKit\qmlwebkitplugind.dll
> >>>         @C:\Users\mike\AppData\Local\Temp\nmE0BC.tmp   Creating
> >>>         library ..\imports\QtWebKit\qmlwebkitplugind.lib and object
> >>>         ..\imports\QtWebKit\qmlwebkitplugind.expqdeclarativewebview.ob
> >>>         j : error LNK2001: unresolved external symbol "public: static
> >>>         struct QMetaObject const QWebPage::staticMetaObject"
> >>>         (?staticMetaObject at QWebPage@@2UQMetaObject@@B)plugin.obj :
> >>>         error LNK2001: unresolved external symbol "public: static
> >>>         struct QMetaObject const QWebPage::staticMetaObject"
> >>>         (?staticMetaObject at QWebPage@@2UQMetaObject@@B)moc_qdeclarative
> >>>         webview_p.obj : error LNK2001: unresolved external symbol
> >>>         "public: static struct QMetaObject const
> >>>         QWebPage::staticMetaObject"
> >>>         (?staticMetaObject at QWebPage@@2UQMetaObject@@B)qdeclarativewebv
> >>>         iew.obj : error LNK2
> 
>  0
> 
> >  01: unresolved external symbol "public: static struct QMetaObject const
> >  QGraphicsWebView::staticMetaObject"
> >  (?staticMetaObject at QGraphicsWebView@@2UQMetaObject@@B)plugin.obj :
> >  error LNK2001: unresolved external symbol "public: static struct
> >  QMetaObject const QGraphicsWebView::staticMetaObject"
> >  (?staticMetaObject at QGraphicsWebView@@2UQMetaObject@@B)moc_qdeclarativew
> >  ebview_p.obj : error LNK2001: unresolved external symbol "public: static
> >  struct QMetaObject const QGraphicsWebView::staticMetaObject"
> >  (?staticMetaObject at QGraphicsWebView@@2UQMetaObject@@B)qdeclarativewebvi
> >  ew.obj : error LNK2001: unresolved external symbol "public: static
> >  struct QMetaObject const QWebFrame::staticMetaObject"
> >  (?staticMetaObject at QWebFrame@@2UQMetaObject@@B)..\imports\QtWebKit\qmlw
> >  ebkitplugind.dll : fatal error LNK1120: 3 unresolved externals
> >  
> >> Looks like some moc files were not generated. How do you build QtWebKit?
> > 
> > I followed trac.webkit.org/Wiki/buildingqtonwindows
> > 
> >>> System is Windows 7 64bit.
> >>> 
> >>> Do I have to build Qt 4.8.2 from source with -qtwebkit? I now just
> >>> installed the VS-2010 binaries.
> >> 
> >> No, having another QtWebKit around may even make things worse.
> > 
> > Sorry, I meant Build with configue -no-webkit. Because right now i do
> > have the precompiled binaries installed which Include the webkit.
> > 
> >> --
> >> Regards,
> >> Konstantin
> > 
> > So should I Build qt 4.8.2. from source with configue -no-webkit first?
> > Thanks and best Regards,
> 
> Yes, you need to configure Qt with -no-webkit before you try to build
> a custom QtWebKit because your linker most probably tries to link to
> the installed libraries and that obviously fails.
> 
I usually never have that problem, and the two libaries should hopefully be 
binary compatible.

But you have to build WebKit with --no-webkit2 and with QTDIR set (even if Qt 
is installed in /usr !)



More information about the webkit-qt mailing list