PDA

View Full Version : Deployment problem on clean windows system



mbreier
16th February 2010, 12:39
Hello all,

I have written a QT appliccation with dynamic binding of my QT libraries.
I'm using QT 4.5.1 on my Windows XP system together with eclipse and mingw.
So I have compiled it and it runs fine on my PC.
Now I have copied it on a virtual machine, running a complete clean Windows XP system.
Of cause several messages appeared to copy also the QT dlls to this system and also the mingwm10.dll too.
After I have done all this the application still crashes with the message:

Microsoft Visual C++ Runtime Library Runtime error
Program xxxxxxxx
This application has requested the Runtime to terminate it in an unusual way.
Please contact blabla.

I tried to copy also the microsoft related dlls as described on the qt pages,
http://doc.trolltech.com/4.5/deployment-windows.html
but the error still appears.

In addition here you see a screenshot from the dependency walker:

4293

schnitzel
16th February 2010, 16:57
I noticed in the depends screenshot that you are using sql - I would first try a simpler app since sql apps have a bit more elaborate deployment requirements, especially when you are using any of the plugins.

Some of the MS dlls are already installed on a clean windows, so it all depends.

mbreier
16th February 2010, 17:45
Hello and thanx for the hint.

Meanwhile I have solved the problem by using the profiler of depends.
It was as you mentioned the QSQLITE plugin that was missing.

I have now copied the plugins directory (full path) of my original Qt installation to the target PC.
Also some of the imgage formats had to be stored there.

Before I had the QSQLITE plugin in the same directory as my application.

So its solved. Thanks again.