Build QtWebEngine failed on Ubuntu14.04



  • Hi, I am trying to build QtWebEngine according to https://wiki.qt.io/How_to_Try_QtWebEngine.
    I tried QT 4.8.6, 5.5.1, 5.5.0. But all failed.

    The detailed error on 5.5.0(http://download.qt.io/official_releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0-2.run) is:

    In file included from /g1/qt/qtwebengine/include/QtWebEngineCore/qwebenginecallback.h:1:0,
    from /g1/qt/qtwebengine/src/core/api/qwebenginecookiestore.h:41,
    from /g1/qt/qtwebengine/src/core/browser_context_adapter.h:49,
    from /g1/qt/qtwebengine/src/core/browser_context_adapter.cpp:37:
    /g1/qt/qtwebengine/include/QtWebEngineCore/../../src/core/api/qwebenginecallback.h:94:1: error: expected constructor, destructor, or type conversion before ‘Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT
    Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QWebEngineCallback<const QString &>)
    ^
    In file included from /g1/qt/qtwebengine/src/core/api/qwebenginecookiestore.h:45:0,
    from /g1/qt/qtwebengine/src/core/browser_context_adapter.h:49,
    from /g1/qt/qtwebengine/src/core/browser_context_adapter.cpp:37:
    /opt/Qt5.5.0/5.5/gcc_64/include/QtCore/qurl.h:239:25: error: ‘QUrlQuery’ does not name a
    void setQuery(const QUrlQuery &query);
    ^
    /opt/Qt5.5.0/5.5/gcc_64/include/QtCore/qurl.h:239:36: error: ISO C++ forbids declaration of ‘query’ with no type [-fpermiss
    void setQuery(const QUrlQuery &query);
    ^
    [10/43] CXX obj/src/core/QtWebEngineCore.media_capture_devices_dispatcher.o
    ninja: build stopped: subcommand failed.
    make[3]: *** [invoke_ninja] Error 1
    make[3]: Leaving directory /g1/qt/qtwebengine/src/core' make[2]: *** [sub-gyp_run-pro-make_first] Error 2 make[2]: Leaving directory/g1/qt/qtwebengine/src/core'
    make[1]: *** [sub-core-make_first] Error 2
    make[1]: Leaving directory `/g1/qt/qtwebengine/src'
    make: *** [sub-src-make_first] Error 2


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.