Hello,
in my App the QPSQL driver is not loaded..

Qt Code:
  1. QSqlDatabase: QPSQL driver not loaded
  2. QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
To copy to clipboard, switch view to plain text mode 
So i need to build it.
I'm using msvc2010 and the proper toolchain: C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin

I've read many posts and found the wiki:
http://www.qtcentre.org/wiki/index.p...or_QtSDK_Users

I've installed the missing sources, put the paths as described in the wiki, did:

Qt Code:
  1. cd C:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql
  2. qmake "INCLUDEPATH+=C:\\Program Files\\PostgreSQL\\9.1\\include" "LIBS+= C:\\Program Files\\PostgreSQL\\9.1\\lib\\libpg.lib" psql.pro
  3. nmake
To copy to clipboard, switch view to plain text mode 

the result of nmake was:
Qt Code:
  1. c:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql>nmake
  2.  
  3. Microsoft (R) Program Maintenance Utility, Version 10.00.30319.01
  4. Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
  5.  
  6. "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile.Debug
  7.  
  8. Microsoft (R) Program Maintenance Utility, Version 10.00.30319.01
  9. Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
  10.  
  11. C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCI
  12. I -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SU
  13. PPORT -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2010\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2010\include\QtSql" -I"c:\QtSDK\Desktop\Qt\4.8.
  14. 1\msvc2010\include" -I"c:\Program" -I"Files\PostgreSQL\9.1\include" -I"c:\QtSDK\QtSources\4.8.1" -I"..\..\..\sql\drivers\psql" -I"." -I"c:\P
  15. rogram Files\PostgreSQL\9.1\include" -I"c:\Program Files\PostgreSQL\9.1\lib" -I"c:\Program Files\PostgreSQL\psqlODBC\0901\bin" -I"c:\QtSDK\D
  16. esktop\Qt\4.8.1\msvc2010\include\ActiveQt" -I"debug" -I"c:\QtSDK\Desktop\Qt\4.8.1\msvc2010\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 .
  17. .\..\..\sql\drivers\psql\qsql_psql.h -o debug\moc_qsql_psql.cpp
  18. rc -D_DEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB
  19. -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -fo debug\qsqlpsqld_resource.
  20. res qsqlpsqld_resource.rc
  21. Der Befehl "rc" ist entweder falsch geschrieben oder
  22. konnte nicht gefunden werden.
  23. NMAKE : fatal error U1077: "rc": Rückgabe-Code "0x1"
  24. Stop.
  25. NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"": Rückgabe-Code "0x2"
  26. Stop.
  27.  
  28. c:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql>
To copy to clipboard, switch view to plain text mode 


so:
-fo debug\qsqlpsqld_resource.res qsqlpsqld_resource.rc
the command "rc" is either wrong or could not be found


I've looked over the files and google but did not find anything helpful.
Any advices would be appreciated.

thanx in advance,
Astronomy