QWebView with static compiled Qt
-
I've recompiled Qt static (release). Now I've created a new default Qt GUI application with Qt Creator.
When I add QT += webkit to my .pro file and compile it, everything works fine and my main window opens.
Now When I add a QWebView to my main window, I can still compile, but when the app start it crashes with:
@Starting C:\Qt\2010.05\qt\untitled-build-desktop\release\untitled.exe...
C:\Qt\2010.05\qt\untitled-build-desktop\release\untitled.exe exited with code -1073741511@I haven't changed ANYTHING on the project except adding the QWebView and adding the statement to the project file. I also can't debug the application.
Any idea why (I think it might have something to do with the static compilation of Qt)
-
I've also noticed that when I normally compile my apps (static), I can just run the exe file, now my exe requires all the Qt libs, eg QtWebKit4.dll, QtCore4.dll, QtGui4.dll etc.
So know my app doesn't seem like it was compile static. When I remove the QWebView widget however, I can run the exe as normally
-
Where did you get Qt WebKit from? Did you build it yourself statically? If not then you might get the Qt libraries loaded as a dependency to Qt WebKit... which would clash with the symbols already compiled into your application and cause some strange behavior.
You can use "dependency walker":http://www.dependencywalker.com/ on your .exe file to check which libraries that loads (and which are dragged in as dependencies to those).
-
I build Qt myself statically. But even if my compile exe has all depended dll libraries, it still crashes when I open it up
-
Webkit support for static Qt is "disabled":http://qt.gitorious.org/qt/qt/commit/4221d629e2cf37ee8c5ba7cb595b05ab8c82f113
-
Ahh, thanx. I thought it might be something like that