Hi,

Either remove the "QT += webenginewidgets" line so it does not link to the 
library,
or replace the QCoreApplication with a QApplication instance.

> On 12 Apr 2016, at 10:18, DAS Loop <dasl...@gmail.com> wrote:
> 
> 
> Hi,
> 
> While porting an app to Qt (Mac OS X SDK 10.11, QT 5.6) I have found a 
> problem. A console app (no GUI) crashes because it loads a dylib that links 
> with Qt WebEngine. The app never instantiates any object that uses Qt 
> WebEngine. The crash happen in QtWebEngineCore::initialize because it tries 
> to create a QOpenGLContext. 
> 
> There is any way to disable this behaviour other that changing my app?
> 
> This sample reproduces the problem:
> 
> console.pro <http://console.pro/>
> 
> TEMPLATE = app
> TARGET = console
> INCLUDEPATH += .
> SOURCES += main.cpp
> CONFIG += console
> CONFIG -= app_bundle
> QT += webenginewidgets
> 
> main.cpp
> 
> #include <QCoreApplication>
> #include <QWebEngineView>
> 
> int main( int argc, char * argv[] )
> {
>       QCoreApplication        app( argc, argv );
>       
>       return 0;
> }
> 
> Thanks,
> 
> David
> 
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to