Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, May 2007
PostgreSQL trouble Windows Platform


Message 1 in thread

Hi!
I'm running QT-4.2.2 on WindowsXP Pro.
After reading
http://doc.trolltech.com/4.2/sql-driver.html#how-to-build-the-plugin-on-windows

I've succesfully built libqsqlpsql.a and qsqlpsql.dll.
I've moved those files into my database project root-dir.
But after running project executable, I has an error "Driver not loaded".

Can I fix this issue?

-- 
 [ signature omitted ] 

Message 2 in thread

On Mon, 14 May 2007 08:19:54 +0400
Ilia N Ternovich <ternovich@xxxxxxxxx> wrote:


P.S. QT-4.2.3 under Windows was deployed without PostgreSQL support, so
I've built only psql driver ( as described in previous e-mail )

Under my Linux Developers Machine project works perfectly. 


-- 
 [ signature omitted ] 

Message 3 in thread

Hello, Ilia N Ternovich
14.05.2007 10:19 you wrote:
> Hi!
> I'm running QT-4.2.2 on WindowsXP Pro.
> After reading
> http://doc.trolltech.com/4.2/sql-driver.html#how-to-build-the-plugin-on-windows
> 
> I've succesfully built libqsqlpsql.a and qsqlpsql.dll.
> I've moved those files into my database project root-dir.
> But after running project executable, I has an error "Driver not loaded".
> 
> Can I fix this issue?
> 

Read Qt docs about "Deploying an Application on Qt/Windows", check 
qsqlpsql.dll dependencies with depends, copy qsqlpsql.dll into "project 
root-dir/plugins/sqldrivers" and delete registry key
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults.

--
 [ signature omitted ] 

Message 4 in thread

On Mon, 14 May 2007 11:00:29 +0600
Nikolay Moskvichev <nikolay.moskvichev@xxxxxxxxx> wrote:


> Read Qt docs about "Deploying an Application on Qt/Windows", check 
> qsqlpsql.dll dependencies with depends, copy qsqlpsql.dll into "project 
> root-dir/plugins/sqldrivers" and delete registry key
> HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults.

Well, there is nothing about how-to show to configure where Postgre
include/ and lib/ paths are located.

E.g. I run (WINDOWS)
configure -qt-sql-psql -platform windows-g++

Do I need to pass to configure Postgre Developers library paths and how to
do this? ( they are installed into c:\psql\include and c:\psql\lib )


-- 
 [ signature omitted ] 

Message 5 in thread

Hello, Ilia N Ternovich
14.05.2007 11:33 you wrote:
> On Mon, 14 May 2007 11:00:29 +0600
> Nikolay Moskvichev <nikolay.moskvichev@xxxxxxxxx> wrote:
> 
> 
>> Read Qt docs about "Deploying an Application on Qt/Windows", check 
>> qsqlpsql.dll dependencies with depends, copy qsqlpsql.dll into "project 
>> root-dir/plugins/sqldrivers" and delete registry key
>> HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults.
> 
> Well, there is nothing about how-to show to configure where Postgre
> include/ and lib/ paths are located.
> 

you already siccesfully build qsqlpsql, or i missing something ?

Here how i do it (MVS, sorry):

build Qt:

configure -fast -debug-and-release
nmake

then build psql plugin:

cd to %QTDIR%/src/plugins/sqldrivers/psql/
qmake -makefile "INCLUDEPATH+=D:\PostgreSQL\include" 
"LIBS+=D:\PostgreSQL\lib\ms\libpq.lib"
nmake

Then delete registry key 
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults


Now if you run %QTDIR%\demos\sqlbrowser you should see QPSQL available 
in drivers combo.

> E.g. I run (WINDOWS)
> configure -qt-sql-psql -platform windows-g++
> 
> Do I need to pass to configure Postgre Developers library paths and how to
> do this? ( they are installed into c:\psql\include and c:\psql\lib )
> 
> 

--
 [ signature omitted ]