[webkit-qt] using QtWebkit 2.0 / Qt 4.7-stable

Sylvain Pointeau sylvain.pointeau at gmail.com
Thu Apr 15 05:44:44 PDT 2010


oops I have a link error:

g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64
-mmacosx-version-min=10.5 -single_module -dynamiclib -compatibility_version 4.7
-current_version 4.7.0 -install_name
/Users/sylvain/development/lib/qt/qtwebkit/WebKitBuild/Release/lib/QtWebKit.framework/Versions/4/QtWebKit
-o QtWebKit obj/release/StringImplMac.o obj/release/WebCoreNSStringExtras.o
obj/release/SVGNames.o obj/release/SVGElementFactory.o
obj/release/JSSVGElementWrapperFactory.o obj/release/XLinkNames.o
obj/release/JSCounter.o obj/release/JSCSSCharsetRule.o
obj/release/JSCSSFontFaceRule.o obj/release/JSCSSImportRule.o
obj/release/JSCSSMediaRule.o obj/release/JSCSSPageRule.o
obj/release/JSCSSPrimitiveValue.o obj/release/JSCSSRule.o
obj/release/JSCSSRuleList.o obj/release/JSCSSStyleDeclaratio
....

ld: library not found for -ljscore
collect2: ld returned 1 exit status
make[2]: *** [../lib/QtWebKit.framework/QtWebKit] Error 1
make[1]: *** [release-all] Error 2
make: *** [sub-WebCore-make_default-ordered] Error 2


On Thu, Apr 15, 2010 at 2:21 PM, Kent Hansen <kent.hansen at nokia.com> wrote:

> Hi,
> Have you tried the poor man's make install? I.e. copying the files from
> WebKitBuild/Release/lib to usr/local/Trolltech/4.7.0/lib.
> You might want to back up the old libs in case something explodes.
> I think there used to be / is? some script in WebKitTools where you could
> pass a switch to have it copy the files to $QTDIR/lib, though.
>
> Kent
>
>
> ext Sylvain Pointeau wrote:
>
>> Thank you,
>>
>> I ran the "WebKitTools/Scripts/build-webkit --qt" command, and it compiles
>> since a long time so it is a good sign :-)
>>
>> how to deploy it to the usr/local/Trolltech/4.7.0 ?
>> is it done by "make install" ?
>>
>> Many thanks again,
>> Sylvain
>>
>> On Thu, Apr 15, 2010 at 12:32 PM, Jocelyn Turcotte <
>> jocelyn.turcotte at nokia.com <mailto:jocelyn.turcotte at nokia.com>> wrote:
>>
>>    You have two options to get the latest QtWebKit:
>>
>>    1. If you want to contribute patches, get the sources from the
>>    repository, and run the following script to generate additional
>>    sources and include headers:
>>    WebKitTools/Scripts/build-webkit --qt
>>
>>
>>    2. If you only want to try the latest QtWebKit, get the sources
>>    from a weekly package and compile it using:
>>    qmake && make
>>
>>    Weekly packages have these additional sources pre-generated so
>>    that you don't have to install bison/flex/etc.
>>    You can currently get them from:
>>    http://chaos.troll.no/~shausman/weekly-webkit-builds/trunk/
>>    <http://chaos.troll.no/%7Eshausman/weekly-webkit-builds/trunk/>
>>
>>
>>    Weekly builds are something we are trying to make available, but
>>    this is still not quite official and a work in progress. You can
>>    find more information about them there:
>>    http://trac.webkit.org/wiki/QtWebKit in the "Journal / Weekly
>>    Binary Builds </wiki/QtWebKitJournal>" section
>>
>>
>>    Since you got your sources from the repository, please use the
>>    build-webkit script to build QtWebKit.
>>    See there for more information:
>>    http://trac.webkit.org/wiki/BuildingQtOnLinux
>>
>>
>>    Jocelyn
>>
>>
>>
>>    On 4/15/2010 11:51 AM, ext Sylvain Pointeau wrote:
>>
>>        unfortunately it does not compile.
>>        is it coming from Qt 4.7-stable or qtwebkit?
>>
>>        main.cpp: In member function ‘void
>>        LauncherWindow::loadFinished()’:
>>        main.cpp:443: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        main.cpp: In member function ‘void
>>        LauncherWindow::zoomAnimationFinished()’:
>>        main.cpp:463: error: ‘QGraphicsWebView’ was not declared in
>>        this scope
>>        main.cpp:463: error: ‘view’ was not declared in this scope
>>        main.cpp: In member function ‘void LauncherWindow::applyZoom()’:
>>        main.cpp:470: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:470: error: ‘QWebSettings’ has not been declared
>>        main.cpp:471: error: ‘QGraphicsWebView’ was not declared in
>>        this scope
>>        main.cpp:471: error: ‘view’ was not declared in this scope
>>        main.cpp:488: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        main.cpp: In member function ‘void LauncherWindow::resetZoom()’:
>>        main.cpp:514: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        main.cpp: In member function ‘void
>>        LauncherWindow::toggleZoomTextOnly(bool)’:
>>        main.cpp:519: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:519: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void LauncherWindow::print()’:
>>        main.cpp:527: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        main.cpp: In member function ‘void
>>        LauncherWindow::setEditable(bool)’:
>>        main.cpp:550: error: ‘class WebPage’ has no member named
>>        ‘setContentEditable’
>>        main.cpp: In member function ‘void LauncherWindow::dumpHtml()’:
>>        main.cpp:568: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        main.cpp: In member function ‘void
>>        LauncherWindow::selectElements()’:
>>        main.cpp:578: error: ‘QWebElementCollection’ was not declared
>>        in this scope
>>        main.cpp:578: error: expected `;' before ‘result’
>>        main.cpp:579: error: ‘result’ was not declared in this scope
>>        main.cpp:579: error: template argument 1 is invalid
>>        main.cpp:579: error: invalid type in declaration before ‘(’ token
>>        main.cpp:579: error: request for member ‘brk’ in
>>        ‘_container_’, which is of non-class type ‘int’
>>        main.cpp:579: error: request for member ‘i’ in ‘_container_’,
>>        which is of non-class type ‘int’
>>        main.cpp:579: error: request for member ‘e’ in ‘_container_’,
>>        which is of non-class type ‘int’
>>        main.cpp:579: error: request for member ‘brk’ in
>>        ‘_container_’, which is of non-class type ‘int’
>>        main.cpp:579: error: request for member ‘i’ in ‘_container_’,
>>        which is of non-class type ‘int’
>>        main.cpp:579: error: ‘QWebElement’ was not declared in this scope
>>        main.cpp:579: error: expected `;' before ‘e’
>>        main.cpp:579: error: request for member ‘brk’ in
>>        ‘_container_’, which is of non-class type ‘int’
>>        main.cpp:580: error: ‘e’ was not declared in this scope
>>        main.cpp: In member function ‘void
>>        LauncherWindow::toggleAcceleratedCompositing(bool)’:
>>        main.cpp:597: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:597: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void
>>        LauncherWindow::toggleTiledBackingStore(bool)’:
>>        main.cpp:602: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:602: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void
>>        LauncherWindow::toggleWebGL(bool)’:
>>        main.cpp:612: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:612: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void
>>        LauncherWindow::initializeView(bool)’:
>>        main.cpp:623: error: ‘class WebViewTraditional’ has no member
>>        named ‘setPage’
>>        main.cpp:625: error: ‘class WebViewTraditional’ has no member
>>        named ‘installEventFilter’
>>        main.cpp:627: error: cannot convert ‘WebViewTraditional*’ to
>>        ‘QWidget*’ in assignment
>>        main.cpp:630: error: no matching function for call to
>>        ‘WebViewGraphicsBased::setPage(WebPage*)’
>>        webview.h:74: note: candidates are: void
>>        WebViewGraphicsBased::setPage(int*)
>>        main.cpp: In member function ‘void
>>        LauncherWindow::toggleSpatialNavigation(bool)’:
>>        main.cpp:654: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:654: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void
>>        LauncherWindow::toggleFrameFlattening(bool)’:
>>        main.cpp:702: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:702: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void
>>        LauncherWindow::createChrome()’:
>>        main.cpp:799: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:799: error: ‘QWebPage’ has not been declared
>>        main.cpp:800: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:800: error: ‘QWebPage’ has not been declared
>>        main.cpp:802: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:802: error: ‘QWebPage’ has not been declared
>>        main.cpp:803: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:803: error: ‘QWebPage’ has not been declared
>>        main.cpp:804: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:804: error: ‘QWebPage’ has not been declared
>>        main.cpp:810: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:810: error: ‘QWebPage’ has not been declared
>>        main.cpp:811: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:811: error: ‘QWebPage’ has not been declared
>>        main.cpp:826: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:826: error: ‘QWebPage’ has not been declared
>>        main.cpp:827: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:827: error: ‘QWebPage’ has not been declared
>>        main.cpp:828: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:828: error: ‘QWebPage’ has not been declared
>>        main.cpp:830: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:830: error: ‘QWebPage’ has not been declared
>>        main.cpp:831: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:831: error: ‘QWebPage’ has not been declared
>>        main.cpp:832: error: ‘class WebPage’ has no member named ‘action’
>>        main.cpp:832: error: ‘QWebPage’ has not been declared
>>        main.cpp:849: error: no matching function for call to
>>        ‘QMenu::addAction(const char [19], WebInspector*&, const
>>        char*, QKeySequence)’
>>
>>  /usr/local/Trolltech/Qt-4.7.0/lib/QtGui.framework/Versions/4/Headers/qmenu.h:89:
>>        note: candidates are: QAction* QMenu::addAction(const QString&)
>>
>>  /usr/local/Trolltech/Qt-4.7.0/lib/QtGui.framework/Versions/4/Headers/qmenu.h:90:
>>        note:                 QAction* QMenu::addAction(const QIcon&,
>>        const QString&)
>>
>>  /usr/local/Trolltech/Qt-4.7.0/lib/QtGui.framework/Versions/4/Headers/qmenu.h:91:
>>        note:                 QAction* QMenu::addAction(const
>>        QString&, const QObject*, const char*, const QKeySequence&)
>>
>>  /usr/local/Trolltech/Qt-4.7.0/lib/QtGui.framework/Versions/4/Headers/qmenu.h:92:
>>        note:                 QAction* QMenu::addAction(const QIcon&,
>>        const QString&, const QObject*, const char*, const QKeySequence&)
>>        /usr/local/Trolltech/Qt-4.7.0/include/QtGui/qwidget.h:565:
>>        note:                 void QWidget::addAction(QAction*)
>>        main.cpp:851: error: no matching function for call to
>>        ‘QAction::connect(WebInspector*&, const char*, const char*)’
>>        /usr/local/Trolltech/Qt-4.7.0/include/QtCore/qobject.h:209:
>>        note: candidates are: static bool QObject::connect(const
>>        QObject*, const char*, const QObject*, const char*,
>>        Qt::ConnectionType)
>>        /usr/local/Trolltech/Qt-4.7.0/include/QtCore/qobject.h:314:
>>        note:                 bool QObject::connect(const QObject*,
>>        const char*, const char*, Qt::ConnectionType) const
>>        main.cpp:859: error: ‘QWebSettings’ was not declared in this scope
>>        main.cpp:859: error: ‘settings’ was not declared in this scope
>>        main.cpp:859: error: ‘class WebPage’ has no member named
>>        ‘settings’
>>        main.cpp:868: error: ‘QWebSettings’ is not a class or namespace
>>        main.cpp:872: error: ‘QWebSettings’ is not a class or namespace
>>        main.cpp:894: error: ‘QWebSettings’ is not a class or namespace
>>        main.cpp: At global scope:
>>        main.cpp:982: error: expected constructor, destructor, or type
>>        conversion before ‘*’ token
>>        main.cpp: In member function ‘virtual QObject*
>>        WebPage::createPlugin(const QString&, const QUrl&, const
>>        QStringList&, const QStringList&)’:
>>        main.cpp:1001: error: ‘view’ was not declared in this scope
>>        main.cpp: In function ‘int launcherMain(const QApplication&)’:
>>        main.cpp:1013: error: ‘qt_drt_garbageCollector_collect’ was
>>        not declared in this scope
>>        main.cpp:1014: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In member function ‘void
>>        LauncherApplication::applyDefaultSettings()’:
>>        main.cpp:1040: error: ‘QWebSettings’ has not been declared
>>        main.cpp:1042: error: ‘QWebSettings’ has not been declared
>>        main.cpp:1044: error: ‘QWebSettings’ has not been declared
>>        main.cpp:1044: error: ‘QWebSettings’ has not been declared
>>        main.cpp:1045: error: ‘QWebSettings’ has not been declared
>>        main.cpp:1045: error: ‘QWebSettings’ has not been declared
>>        main.cpp:1046: error: ‘QWebSettings’ has not been declared
>>        main.cpp: In function ‘int main(int, char**)’:
>>        main.cpp:1168: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        main.cpp:1169: error: ‘class WebPage’ has no member named
>>        ‘mainFrame’
>>        make[1]: *** [main.o] Error 1
>>        make: *** [sub-WebKitTools-QtLauncher-make_default-ordered]
>>        Error 2
>>
>>
>>        On Thu, Apr 15, 2010 at 10:05 AM, Fathi Boudra
>>        <fboudra at gmail.com <mailto:fboudra at gmail.com>
>>        <mailto:fboudra at gmail.com <mailto:fboudra at gmail.com>>> wrote:
>>
>>           > I run qmake (4.7) on the WebKit.pro
>>           > and run make...
>>           > seems to compile well, let's see
>>
>>           that's the method to use.
>>
>>           Cheers,
>>
>>           Fathi
>>
>>
>>    _______________________________________________
>>    webkit-qt mailing list
>>    webkit-qt at lists.webkit.org <mailto:webkit-qt at lists.webkit.org>
>>
>>    http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>>
>>
>>
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100415/c026b48f/attachment-0001.html>


More information about the webkit-qt mailing list