views:

1465

answers:

0

hello,

it's been two days, i've checked every solution online i could find but still no help.

here's the thing: my os is Windows 7 RC 64 bit. i have Qt 4.5.1 development environment and PostgreSQL 8.3 development libraries (installed via PostgrePlus one-click installer). so i have some dll's and header files, but no "libpq.lib". so according to many tutorials like http://www.ldc.usb.ve/docs/qt/sql-driver.html#qpsql-for-postgresql-version-7-3-and-above

i tried to build the QPSQL, but like this:

C:\Qt\2009.02\qt\src\plugins\sqldrivers\psql>qmake -o Makefile "INCLUDEPATH+=C:\PostgresPlus\8.3\include" "LIBS+=C:\PostgresPlus\8.3\lib" psql.pro

this generated the expected files Makefile, Makefile.Debug and Makefile.Release without any error.

than i opened the folder Microsoft .NET Framework SDK v2.0 (64bit) from my start menu and opened SDK Command prompt in order to run nmake in 64bit.

again, i ran nmake and get the output without any problems:

C:\Qt\2009.02\qt\src\plugins\sqldrivers\psql>nmake /f Makefile.Release

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        ar -ru ..\..\..\..\plugins\sqldrivers\libqsqlpsql.a tmp/obj/release_stat
ic/main.o  tmp/obj/release_static/qsql_psql.o  tmp/obj/release_static/moc_qsql_psq
l.o
C:\Qt\2009.02\mingw\bin\ar.EXE: creating ..\..\..\..\plugins\sqldrivers\libqsqlp
sql.a

indeed, in the folder C:\Qt\2009.02\qt\plugins\sqldrivers it created the libqsqlpsql.a file succesfully, but no qsqlpsql.dll or similar. and as a result, when i check the available drivers within the qt code as "QStringList driverList = QSqlDatabase::drivers();", QPSQL is not listed.

i prefer not to use QODBC driver by the way :]

thanks in advance for your kind responses. i'll be more than glad to add any information i missed.