How to deliver sqlite driver to the end user?

后端 未结 2 436
我在风中等你
我在风中等你 2021-01-12 12:54

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

相关标签:
2条回答
  • 2021-01-12 13:15

    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...

    0 讨论(0)
  • 2021-01-12 13:19

    Please read the Windows deployment guide, plugins section. You are not supposed to drop things in windows\system32, there's a specific directory structure to follow. The exact paths depend on your Qt installation and your application path.

    0 讨论(0)
提交回复
热议问题