Hello!
I'm trying to deploy an application on a computer other than my own and I seem to have some problem with loading the MySQL driver plugin.
Facts:
1. I'm using the 2010.05 SDK on a win7 x64 PC for developing. I'm using Qt Creator and MinGW.
2. I have successfully compiled and used the MySQL-driver on the machine mentioned above.
3. I have both a qsqlmysqld4.dll and a qsqlmysql4.dll in my C:\Qt\2010.05\qt\plugins\sqldrivers folder so I guess it is successfully built in both debug and release mode. Also I can compile my current "database-list-application" in both debug and release mode with full functionality.
4. When I use Dependency Walker on the built executable I get the compiler specific dll's (LIBGCC_S_DW2-1.dll and MINGWM10.dll) in the list along with the QtCore4, QtGUI4 and QtSQL4.dll. But I can't find anything about dependencies towards the mysql-plugin/driver dll.
Questions:
How do I deploy my application on a different computer?
I have another machine here using the same OS (with no Qt installs or programs) but I can't get the database connection to work on that one.
What I have tried is to put the executable (built in release-mode) and all the DLL's listed in dep-walker in the same folder on the target computer and put the qsqlmysql4.dll in a subfolder called 'plugins'. I also tried naming the subfolder 'sqldrivers' and putting the dll-file in 'plugins\sqldrivers' and also directly in the folder with the executable but it all ends up with the database connection not functioning properly.
I've read the docs about deploying qt plugins but I'm not sure what's wrong here.
Anyone have any ideas about how to further troubleshoot or, even better, solve this matter?
Thank you!
/Tottish
Bookmarks