[Qt-interest] QPSQL available, but QPSQL not loaded
Oluwafemi A
wordbased.1 at gmail.com
Fri Jun 10 10:52:12 CEST 2011
Hello........I found out that the problem is still there despite placing the
postgresql dlls in the application's executable directory, although that
solved the problem for me to be able to run the application directly from
the compilation's release directory, but now even with the postgresql dlls
removed from the release directory, the psql drivers get loaded. On some 2
other directories (with the required deployment libraries and without the
postgresql/bin libraries) on my development machine, the psql drivers gets
loaded by the app (this has always been the case for these directories).
However compiling and trying to run the application from qt creator returns
'drivers not loaded' (but currently running directly from the release
directory loads the drivers, which used to fail before, but on placement of
the postgresql dlls there, it starts to load, and now even without them it
loads)
Most importantly, on different machines where I intend to deploy this
application (without any trace of qt), I get the 'drivers not loaded' error
...........................any help (Windows, Qt 4.7.3 & PostgreSQL 8.4.8)
On Fri, Jun 3, 2011 at 5:15 PM, Oluwafemi A <wordbased.1 at gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: Oluwafemi A <wordbased.1 at gmail.com>
> Date: Fri, Jun 3, 2011 at 5:14 PM
> Subject: Re: [Qt-interest] QPSQL available, but QPSQL not loaded
> To: Carel Combrink <carel.combrink at gmail.com>
>
>
> Yeah, it worked.......................thanks to all
>
>
> On Fri, Jun 3, 2011 at 1:25 PM, Carel Combrink <carel.combrink at gmail.com>wrote:
>
>> I think that is how I figured it out. Neither the Qt Debugging information
>> nor the documentation said that the problem to "driver not loaded driver not
>> loaded" could be related to missing dlls when the driver is listed in the
>> available drivers.
>>
>>
>> On Fri, Jun 3, 2011 at 2:15 PM, Jason H <scorp1us at yahoo.com> wrote:
>>
>>> You can use the tool depends.exe to find missing depenencies, and see how
>>> the satisfied ones are satisfied.
>>>
>>>
>>> ------------------------------
>>> *From:* Carel Combrink <carel.combrink at gmail.com>
>>> *To:* Oluwafemi A <wordbased.1 at gmail.com>
>>> *Cc:* qt-interest at qt.nokia.com
>>> *Sent:* Friday, June 3, 2011 4:58 AM
>>> *Subject:* Re: [Qt-interest] QPSQL available, but QPSQL not loaded
>>>
>>> Hi,
>>>
>>> I had the same problem a while back. What I can remember is:
>>>
>>> Your application needs to be able to get the following dlls so that you
>>> can use the QPSQL driver.
>>> ssleay32.dll
>>> msvcr71.dll
>>> libpq.dll
>>> libintl-8.dll
>>> libiconv-2.dll
>>> libeay32.dll
>>>
>>> If I remember correctly I copied it into the same folder as the
>>> application exe.
>>> You could probably point your PATH variable to it but I have not tried
>>> this.
>>>
>>> Hope this helps,
>>> Carel
>>>
>>> On Thu, Jun 2, 2011 at 11:20 PM, Oluwafemi A <wordbased.1 at gmail.com>wrote:
>>>
>>> Hi, i'm building a postgresql-backed application, but
>>> QSqlDatabase::drivers(); returns QSQLITE QPSQL7 QPSQL
>>> but QSqlDatabase::addDatabase("QPSQL");
>>> returns driver not loaded driver not loaded........................any
>>> help would be appreciated
>>>
>>> i dont have problem on linux, but this issue arises on windows, Qt 4.7.3
>>> and PostgreSQL 8.4.8
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at qt.nokia.com
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>>
>>>
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at qt.nokia.com
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>>
>>>
>>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110610/0a90090c/attachment.html
More information about the Qt-interest-old
mailing list