[Qt-interest] Can't load qsqldriver
Ross Bencina
rossb-lists at audiomulch.com
Thu Sep 24 09:11:13 CEST 2009
There's also another common way it can fail.
If you're deploying the ms runtime by putting Microsoft.VC80.CRT next to
your exe in myAppDir, and the client doesn't have the correct version of
msvcrt installed, you may get a message box with a message something like
"Cannot load sqlite database driver!"
As far as I know, there are three workarounds:
1. Ship Microsoft.VC80.CRT using an installer which installs it globally to
the system (this is the most kosher method)
2. Static link the sqlite driver (that's what I do).
3. Put a second copy of Microsoft.VC80.CRT in /myAppDir/sqldrivers
HTH
Ross.
>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
>>
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list