Jump to content
  • Advertisement
Sign in to follow this  

Qt webkit and mingw

This topic is 1784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!