如何向最终用户交付sqlite驱动程序? [英] How to deliver sqlite driver to the end user?

查看:67
本文介绍了如何向最终用户交付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...

这篇关于如何向最终用户交付sqlite驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆