[Qt-interest] Help needed, I am stuck building the QPSQL database plugin on Win XP/Qt 4.5.1/mingw
Marc Balmer
marc at msys.ch
Tue May 5 10:32:53 CEST 2009
Am 05.05.2009 um 08:44 schrieb Rohan McGovern:
> On Tuesday 05 May 2009, ext Marc Balmer wrote:
>> Bill,
>>
>>> Are the postgres dll's visible in your path? That's usually the
>>> last piece in the puzzle.
>>>
>>> If they are, then try running your app with QT_DEBUG_PLUGINS
>>> set to 1. This may give some insight as to why it's not
>>> loading.
>>
>> The DLLs are indeed in my Path and setting QT_DEBUG_PLUGINS
>> revealed nothing (i.e. no output to the console). Must I compile
>> my app in some sort
>> of debug mode to eventually get any output?
>>
>
> I don't think so, but if you are running Windows then you probably
> need to run the "debugview" program to see the debugging output.
>
Using debugview I get the following messages when loading (trying
to...) the plugin:
[1308] QFactoryLoader::QFactoryLoader() looking at "C:/Qt/2009.02/qt/
plugins/sqldrivers/qsqlpsqld4.dll"
[1308] "Cannot load library C:/Qt/2009.02/qt/plugins/sqldrivers/
qsqlpsqld4.dll: "
[1308] could not load
[1308] QSqlDatabase: QPSQL driver not loaded
Does it mean the plugin is in the wrong format or a dependency could
not be loaded?
I will now put all psql DLLs in the same dir as the plugin is...
- Marc
More information about the Qt-interest-old
mailing list