I have done a program with Qt4 and I want to redistribute it without compiling, but when I try to use the Mysql driver, it always give me the error DRIVER NOT LOADED. How can I pack the Mysql driver to another computer?
Thanks
I have done a program with Qt4 and I want to redistribute it without compiling, but when I try to use the Mysql driver, it always give me the error DRIVER NOT LOADED. How can I pack the Mysql driver to another computer?
Thanks
Sql related dll's should be put in sqldrivers folder on the system where you are installing the application.
Mithin
www.mithin.in
Or compiled into the executable.
I don't know what UPX is. All you need to do is to compile the driver into the library instead of a separate plugin. See configure -help to see what switch is required when compiling Qt.
Ok "./configure -static" in linux but in Windows (with MinGW) what can I do?
There is a page in Assistant entitled "Deploying an Application on Qt/Windows". It includes information on packaging plugins.
xgoan (6th October 2006)
Don't work, here is my list of files:
Informes.exe
mingwm10.dll
QtCore4.dll
QtGui4.dll
QtSql4.dll
plugins\sqldrivers\LIBMYSQL.DLL
plugins\sqldrivers\qsqlmysql.dll
plugins\sqldrivers\qsqlmysqld.dll
Problem found, when I put a libmysql.dll in the program dir it fails, and when loading the library from \Windows\System32 it works. Copying this library to program directory and it works on all computers...
Bookmarks