-
Deploying on Windows
Hi guys
I've finished an application that works with a ms sql database, that uses a gif for the window icon and that uses a qwidget for the main window.
Now the problem is that QtCreator builds both the debug and the release version of this software and it works fine. It finds the database, it has its icon...The problem is when I try to use this software on a pc where Qt package is not installed. If I launch the debug version, it doesn't load the icon and it seems it is not able to find the database. If I launch the release version it doesn't start reporting the error: "Unable to find the entry point ?insert@?$QVector@VQPointF@@@QAEXHABVQPointF@@@Z of the procedure in the library of dynamic linking QtCore4.dll"
I've so tried to understand how to deploy a stand alone application on Windows and I've found this: http://doc.trolltech.com/4.5/deployment-windows.html But I'm not able to follow the guide because for example I don't have nmake file.
Any help?
-
Re: Deploying on Windows
You need to copy library from Qt/bin/
-
Re: Deploying on Windows
Done...I've copied mingwm10.dll, QtCore4.dll, QtCored4.dll, QtGui4.dll, Qtguid4.dll and QtSqld4.dll. At the end I have that problem
-
Re: Deploying on Windows
You have to copy the plugins too. Just copy the "plugins" directory to your application path (from debug qt to debug app and from release qt to release app).
For the other problem, sometimes happened to me to have another QtCore4.dll somewhere in the system path (usually in miktex or lyx directory) not compatible with the one used for building. You should fix this by putting your QtCore4.dll (the one from release qt) in the same directory of your release app.
-
Re: Deploying on Windows
Hello GianMarco,
I have the same problem.
Have you fix the problem with mssql
-
Re: Deploying on Windows
the folder that contains your app (and all the dlls you listed), should look like this (for release version):
<app>.exe
QtCore4.dll
QtGui4.dll
QtSql4.dll
mingwm10.dll
imageformats\qgif4.dll (since you are using gif for window icon)
sqldrivers\qsqlmysql4.dll
plus libmySQL.dll (the MySQL client dll) should be in your path.
If this still doesn't work, learn how to use 'depends.exe' (http://www.dependencywalker.com/).
I would write a little testapp without the database stuff to get the icon stuff working first, then solve the dependencies on the db related dlls.
hope this helps
-
Re: Deploying on Windows
Didn't see this thread, but my issue exactly. No go with a remote computer trying to run the application. I have even installed the full SDK on that computer, still nothing!