[Qt-interest] Strange problem with QPSQL driver

Marek Bronowicki marek at cyberdeus.pl
Thu Sep 24 18:34:09 CEST 2009


I think that's not it.
I tried without app/plugins but it tell me that qpsql driver is not 
available
In dependency walker i see that libpq is loaded, qsqlpsql4.dll also is 
loaded.
I have no errors in dependency.
Is it possible that in example ssleay32.dll is in wrong version or any 
other dependencies?

Best Regards,
Marek Bronowicki
Robert Escott pisze:
> When you make a distribution, you mustn't put plugins in a 
> /app/plugins directory, put the plugin categories immediately above 
> the app directory
>
> e.g
> INCORRECT:
>
> app/plugins/imageformats
> app/plugins/sqldrivers
>
> CORRECT:
>
> app/imageformats
> app/sqldrivers
>
> In the QTDIR, the plugin categories are all under a plugins/xxx 
> directory so that they are kept together, your apps don't need this 
> separation.
>
> Robert
>
> ----- Original Message ----- From: "Marek Bronowicki" 
> <marek at cyberdeus.pl>
> To: <qt-interest at trolltech.com>
> Sent: Thursday, September 24, 2009 1:43 PM
> Subject: [Qt-interest] Strange problem with QPSQL driver
>
>
>> Hello
>>
>> I have a weird problem with QPSQL driver module.
>>
>> I have a devel machine running on Vista and of course on my machine 
>> everything works fine.
>> I have also a XP machine which will be destination for my software 
>> and I copied all dlls and directory structure as it should be.
>> app/*.exe
>> app/QtCore4.dll
>> ...
>> app/plugins/sqldrivers/qsqlpsql4.dll
>> and so on.
>>
>> When I call ...db.drivers().at(i)... I see QPSQL and QPSQL7 driver as 
>> an available driver so the qsqlpsql4.dll is successfuly loaded (when 
>> I remove the lib from path, drivers just dissapear).
>> But when I do:
>>
>> QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
>> db.open()
>>
>> db.lastError().text() says to me "Driver not loaded"
>>
>> I'm near to get crazy.
>> Please help me.
>>
>> Best Regards,
>> Marek Bronowicki
>>
>>
>>
>>
>>
>
>




More information about the Qt-interest-old mailing list