如何向最终用户交付sqlite驱动程序?
我用Qt C ++编写的程序调用sqlite数据库。在我自己的计算机上,它运行良好,但在最终用户的计算机上,它显示未加载驱动程序。是的,我不知道应该复制/安装哪些文件/ dll,
My program written in Qt C++ calls the sqlite database. On my own computer it works good, but on the end user's computer it says "Driver not loaded". True, I don't know which files/dlls should be copied/installed,
您能帮我吗?
更新:我发现我需要将sqlite3.dll,sqlite3.def和sqlite3.exe复制到Windows / system32文件夹或程序的文件夹中,但仍无法加载数据库。
Update: I found I need to copy sqlite3.dll, sqlite3.def and sqlite3.exe into windows/system32 folder OR the folder of my program but it still cannot load database.
OS是Windows xP。
OS is Windows xP.
谢谢
尝试复制 qsqlite4.dll
(如果要分发调试版本,则复制 qsqlite4d.dll
)。 code> $ QTDIR\plugins\sqldrivers 文件夹到程序文件夹中的 sqldrivers
子文件夹。如果您不使用任何特殊功能,那么Qt应该可以从那里拿起它。
Try to copy qsqlite4.dll
(or qsqlite4d.dll
, if you are distributing a debug build) from your $QTDIR\plugins\sqldrivers
folder to a sqldrivers
subfolder in your program folder. Qt should then be able to pick it up from there, if you don't use anything special...