Qt documentation says:
How to Build the QPSQL Plugin on Windows
Install the appropriate PostgreSQL developer libraries for your compiler. Assuming that PostgreSQL was installed in
C:\psql
, build the plugin as follows:cd %QTDIR%\qtbase\src\plugins\sqldrivers qmake -- PSQL_INCDIR=C:/psql/include PSQL_LIBDIR=C:/psql/lib/ms nmake sub-psql
So what I did:
D:\Qt\5.3.0-64\qtbase\src\plugins\sqldrivers>"D:\Qt\5.3.0-64\qtbase\qmake\qmake.exe" -- PSQL_INCDIR="D:\pgsql\include" PSQL_LIBDIR="D:\pgsql\lib\msvc2010\x64"
What I get:
***Unknown option --
Usage: D:\Qt\5.3.0-64\qtbase\qmake\qmake.exe [mode] [options] [files]
... generic help follows there ...
So what is the correct command? I'm building this for Qt 5.3.0