How to deliver sqlite driver to end user?

My program, written in Qt C ++, calls the sqlite database. It works well on my own computer, but on the end-user computer it says: "Driver is not loaded." True, I do not know which files / dll should be copied / installed,

Can you help me?

Update: I found that I need to copy sqlite3.dll, sqlite3.def and sqlite3.exe to the windows / system32 folder or my program folder, but it still cannot load the database.

OS is Windows xP.

thanks

+7
source share
2 answers

Try copying qsqlite4.dll (or qsqlite4d.dll if you are distributing a debug build) from your $QTDIR\plugins\sqldrivers folder to the sqldrivers subfolder in your program folder. Qt should be able to pick it up from there if you are not using anything special ...

+13
source

Read the Windows Deployment Guide , plugins section. You should not throw things in windows\system32 , there is a certain directory structure there. The exact paths depend on your Qt installation and your application path.

+5
source

All Articles