Sign in to follow this  

Qt webkit and mingw

Recommended Posts

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  


#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();

    return app.exec();

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this