Qt webkit and mingw

Started by
-1 comments, last by user0 10 years, 3 months ago

Im compiling a simple qt webkit application with mingw everything compiles fine but when running it crashes but the same code runs fine on linux. I dont even get an actual error of what happens I just get testwin32.exe has stopped working. If I run testwin32.exe in wine I get Unhandled exception: page fault on write access to 0x00000001 in 32-bit code (0x68a1d7bd). I dont know what the problem could be?

Compile command: include paths -I and library paths -L are left off for simplicity


i686-w64-mingw32-g++ -Ofast -Wall -o testwin32.exe test.cpp  -static-libgcc -static-libstdc++ -lQt5WebKitWidgets -lQt5Sensors -lQt5Quick -lQt5PrintSupport -lQt5OpenGL -lQt5WebKit -lQt5Qml -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core  

Source:


#include <Qt>
#include <QCoreApplication>
#include <QApplication>
#include <QtWebKitWidgets/QWebView>
#include <QtWebKitWidgets/QWebFrame>
#include <QImage>
#include <QWebPage>


int main(int argc, char** argv){
    QApplication app(argc, argv);
    QWebView* view = new QWebView();

    view->resize(800,600);
    view->load(QUrl("http://www.google.com"));
    view->show();
    return app.exec();
}

This topic is closed to new replies.

Advertisement