[Qt-interest] QSQLITE problems on clean install

Jan janusius at gmx.net
Thu Jan 14 12:22:28 CET 2010


What does QCoreApplication::libraryPaths() return?

Jason Woodall schrieb:
> I have tried that, tried having it in the same directory as the app. 
> I've tried in a plugin folder, then tried qt.conf to declare its location.
> 
> According to the results from dependency walker it looks like it can 
> find the .dll but it is being returned a null.  Not sure if this means 
> its build key doesn't match or, some dependency isn't working or what.
> 
> I personally have a feeling it has something to do with msvcr80 or 
> associated dll's but can't for the life of me figure it out.
> 
> I've found many very similar accounts of this sort online, but no 
> consistent response, nor any response that has fixed my issue.
> 
> 
> 
> Jan wrote:
>> 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
>>>
>>>
>> _______________________________________________
>> 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