[Qt-interest] Can't load qsqldriver
Anatoly Burakov
burakov.anatoly at googlemail.com
Thu Sep 24 13:59:10 CEST 2009
Robert Escott wrote:
> 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
>
Thanks, that solved my problem!
More information about the Qt-interest-old
mailing list