[Qt-interest] QSQLITE problems on clean install

Jan janusius at gmx.net
Wed Jan 13 22:43:55 CET 2010


If you have not build the sqlite plugin on your own you (usually) simply 
create a folder called "sqldrivers" in your app's dir (where your .exe 
is) and copy the plugin (qsqlite4.dll) there.

/sqldriversq/sqlite4.dll <-- ?

Jan

Jason Woodall schrieb:
> I think I posted this to the wrong forum in response to another post:
> http://labs.trolltech.com/forums/topic/1528?replies=2
> 
> If anyone can help me solve this issue it would be appreciated.
> 
> I have a Qt application that makes use of qsqlite.
> I am using Qt 4.5.1, sqlite 3.5.9 (I believe base sqlite with qt 4.5.1).
> Built on Windows Vista using MSVC 2005
> 
> It works on Vista and XP machines with a development environment, when I 
> try to install to a bare machine we get Driver not loaded.
> 
> When running through dependency walker I get this information:
> 
> LoadLibraryW("[APP_LOCATION]/sqldriversq/sqlite4.dll") returned NULL. 
> Error: This application has failed to start because the application 
> configuration is incorrect. Reinstalling the application may fix this 
> problem (14001).
> QSqlDatabase: QSQLITE driver not loaded
> QSqlDatabase: available drivers:
> QSqlQuery::exec: database not open
> QSqlQuery::prepare: database not open
> 
> I have been working on this issue for 2 days now, so any help would be 
> greatly appreciated.
> I have tried creating qt.conf, different locations for the plugins, 
> rebuilt QT with QT_NO_PLUGIN
> 
> 



More information about the Qt-interest-old mailing list