[Qtwebengine] help: build problem

Jocelyn Turcotte jocelyn.turcotte at digia.com
Fri May 9 17:36:27 CEST 2014


Hello,

the first error should be fine if QSGRenderContext is found in the
QtQuick/private/qsgcontext_p.h at the top, and the second error shouldn't
happend with neither 5.2 or 5.3.

So it seems to me that you might be using /usr/bin/qmake on your system,
that is probably using Qt 5.1 instead of using the qmake of 5.3, and your
include paths are following the wrong Qt package.

Try running "which qmake" or "qmake --version". It should point to a Qt
version 5.2 or 5.3.

QtWebEngine won't build with Qt 5.1, and support for 5.2 will eventually
also be removed.

Cheers,
Jocelyn


On Thu, May 08, 2014 at 06:49:54PM +0200, Тяпков Александр wrote:
> Sorry, the last compile lines were:
> 
> 
> ../../../../qtwebengine/src/core/content_browser_client_qt.cpp: In member
> function 'virtual void ShareGroupQtQuick::AboutToAddFirstContext()':
> 
> ../../../../qtwebengine/src/core/content_browser_client_qt.cpp:255:36:
> error: 'sharedOpenGLContext' is not a member of 'QSGContext'
> 
> QOpenGLContext *shareContext = QSGContext::sharedOpenGLContext();
> 
> ^
> 
> ninja: build stopped: subcommand failed.
> 
> 
> Best regards,
> Alexander Tyapkov
> 
> 
> 2014-05-08 18:41 GMT+02:00 Тяпков Александр <tyapkov at gmail.com>:
> 
> > Hi,
> >
> > Today I have another problem with building QtWebengine. After building
> > from QtCreator I have following error:
> >
> > [8551/8570] CXX obj/src/core/QtWebEngineCore.url_request_qrc_job_qt.o
> >
> > ...
> >
> > ../../../../qtwebengine/src/core/delegated_frame_node.cpp:522:68: error:
> > invalid use of incomplete type 'class QSGRenderContext'
> >
> > QSGRectangleNode *rectangleNode =
> > m_sgRenderContext->sceneGraphContext()->createRectangleNode();
> >
> > ^
> >
> > In file included from
> > ../../../../qtwebengine/src/core/delegated_frame_node.cpp:51:0:
> >
> > ../../../../qtwebengine/src/core/delegated_frame_node.h:56:7: error:
> > forward declaration of 'class QSGRenderContext'
> >
> > class QSGRenderContext;
> >
> >
> > I have tried to build with Qt 5.1, 5.2, 5.3 but the result is the same.
> > Can somebody help?
> >
> >
> >
> > Best regards,
> >
> > Alexander Tyapkov
> >
> >

> _______________________________________________
> QtWebEngine mailing list
> QtWebEngine at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qtwebengine




More information about the QtWebEngine mailing list