PDA

View Full Version : SQlite driver not loaded error


ibergmark
16th March 2008, 16:44
I'm trying to deploy an application on Windows XP, but I get a "Driver not loaded" error when trying to open a sqlite database.

My distribution contains;
mingwm10.dll
QtCore4.dll
QtGui4.dll
QtSql4.dll
vace.db
vace.exe

I tested the installation on my development machine, and it works pefectly. When testing I renamed the Qt directory so that it was forced to use the dll's in the distribution.

However, when I do the installation on another Win XP machine, I get the "Driver not loaded" error....

Anybody have some advice?

Thanks,
Ingemar

jpn
16th March 2008, 19:12
In addition to those, you'll need to deploy
sqldrivers/qsqlite4.dll
where sqldrivers is a subdirectory where the executable is located.

ibergmark
17th March 2008, 02:09
Yes, now that I see it I remember reading about it in the docs (sorry :o).
I ran Dependency Walker on my executable, and trusted that it would report all necessary dll's however it can't pick this one up since it's not actually opening the database...

After putting qsqlite4.dll in the sqldrivers directory... (and also moving my database to the directory) it works perfectly!

Thanks for your help.
/ Ingemar