I compiled and executed successfully the same project by removing all QtWebKit-related classes.
This means that probably I haven't set up well Qt or something.
Any ideas?
@Archa4 : I had just enabled the release and debug mode.
I compiled and executed successfully the same project by removing all QtWebKit-related classes.
This means that probably I haven't set up well Qt or something.
Any ideas?
@Archa4 : I had just enabled the release and debug mode.
What Archa4 tried to say is that you won't need to deploy the d dll's (anyway the debug version of the VC++ run time is almost impossible to "install" (deploy) on a system without VS installed)
Which Visual Studio version are you using? The Qt framework dll's need to be built with the same VS version as your application, so make sure you install the correct Qt built, and if you use VS 2010 you need to build Qt yourself else you might get run time errors.
hi,
I am using Qt 4.7.0 (32 bit) but I didn't use Visual Studio at all. I am actually a really newbie to windows architecture and libraries. I followed the instructions and installed Qt with MinGw. Then I tried to transfer my project from linux to windows. I had some troubles to install Qwt and Qxt but in the end I did it. Qt seemed to build, compile and execute flawlessly. Now some part of my project has QtWebKit. The classes and functions appear to work too, the project compiles fine, but when I try to execute the program I get errors having some .dll missing. Do I have to install VS to make QtWebKit work?
About the d dll's you are absolutely right, they are not necessary for the release mode. However when I try to execute the release .exe I get something like:
_ZN11WebElement12appendInsideERK7QString ,.... was not found in the QtWebKit4.dll
Then I copy the QtWebKit4.dll in the folder and I get the similar error:
_Z11qWinAppInstv.. was not found in QtCore4.dll
Then I copy the QtCore4.dll in the release folder and I get:
??0QPointF@@QAE@NN@Z could not be found in QtCore4.dll
My imagination stopped there because I could get through it.
What is the diagnosis? Is it my Qt/windows installation? or should I do something else like adding a environmental variable, adding something to the .pro file, etc,etc?
Make sure you are copying the correct set of DLLs from your installation for deployment. If you are using the Qt SDK bundle then you want the files from:
which have been built the bundled MingW compiler. The files from:Qt Code:
{SDKDIR}/qt/bin e.g. C:/Qt/2010.02.1/qt/binTo copy to clipboard, switch view to plain text mode
were built with MSVC to provide the runtime for Qt Creator and you do not want these.Qt Code:
{SDKDIR}/bin e.g. C:/Qt/2010.02.1/binTo copy to clipboard, switch view to plain text mode
well, indeed, these
_ZN11WebElement12appendInsideERK7QString .dll errors,
were because wrong path was set to the environmental variables. The right one is
I don't have any more dll missing messages, BUT,
I get a general runtime error
Qt Code:
"This application has requested the Runtime to terminate it in an unusual way,bla,bla"To copy to clipboard, switch view to plain text mode
I copied all the dll it asked but stil does not work.
phonon4.dll
QtWebKit4.dll
QtNetwork.dll
Qt4Core4.dll
QtGui4.dll
The thing is that if I remove the QtWebKit and all its class/function instances from the program, the executables works as a charm,
what is the problem?!
Did you read my last post?
it was a stupid typo of me!
I meant to write that I set the path to:
I copied these .dll files everywhere around the project but I get the error message of my previous post.
It seems like the copied.dlls are correct but something crashes the execution of the program(runtime error).
Whatever code you are removing to disable the program's use of WebKit obviously contains the problem then. Probably a NULL/dangling pointer or a reference to a variable that goes out of scope. If you cannot reproduce it in a debugger (you should be able to) then it is time to add bits of the functionality back in until the break reappears.
Bookmarks