[Qt-interest] Can't load qsqldriver
Robert Escott
robert at binarylogic.co.za
Thu Sep 24 07:31:49 CEST 2009
I had a similar problem when I first started using plugins. It looks like
your plugin directory is in the wrong place. Plugins shouldn't be in a
plugins directory, they should be just above your own application's
directory. ie
/myAppDir/sqldrivers/qsqlite4.dll
not
/myAppDir/plugins/.....
Another thing you can check is whether you are building the debug or the
release version of your application. If you're still using the debug
version, you need to be using qsqlite4d.dll instead.
Robert
----- Original Message -----
From: "Anatoly Burakov" <burakov.anatoly at googlemail.com>
To: <qt-interest at trolltech.com>
Sent: Thursday, September 24, 2009 12:23 AM
Subject: [Qt-interest] Can't load qsqldriver
> Hi all
>
> I am trying to use sqlite. Statically linked it works OK, dynamically
> too (provided it is run from within IDE) but when i actually try to
> "distribute" my app i can't use SQLite since the driver doesn't load
> (dynamically, static version works OK too). Where should i put the sql
> driver plugin in order for it to work? tried
> /myAppDir/plugins/sqldrivers/qsqlite4.dll but it didn't work.
>
> Thanks
>
>
More information about the Qt-interest-old
mailing list