tr problem aside, used the line

Qt Code:
  1. qmake "INCLUDEPATH+=\"C:\Program Files\PostgreSQL\9.0\include\"" "LIBS+=\"C:\Program Files\PostgreSQL\9.0\lib\ms\libpq.lib\"" psql.pro
To copy to clipboard, switch view to plain text mode 

then a nmake and got permission denied again....

tried with a make and got this error:

Qt Code:
  1. C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql>make
  2. make -f Makefile.Debug all
  3. make[1]: Entering directory `/c/Qt/2010.05/qt/src/plugins/sqldrivers/psql'
  4. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  5. DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
  6. DQT_CORE_LIB -DQT_THREAD_SUPPORT -I'../../../../include/QtCore' -I'../../../../i
  7. nclude/QtSql' -I'../../../../include' -I'c:/Program Files/PostgreSQL/9.0/include
  8. ' -I'../../../../include/ActiveQt' -I'tmp/moc/debug_shared' -I'../../../../mkspe
  9. cs/win32-g++' -o tmp/obj/debug_shared/main.o main.cpp
  10. make[1]: execvp: g++: Bad file number
  11. make[1]: *** [tmp/obj/debug_shared/main.o] Error 127
  12. make[1]: Leaving directory `/c/Qt/2010.05/qt/src/plugins/sqldrivers/psql'
  13. make: *** [debug-all] Error 2
To copy to clipboard, switch view to plain text mode 

finally, tried with mingw, I`m not sure I`m doing this right, but got this error.....

Qt Code:
  1. C:\Qt\2010.05\qt\src\plugins\sqldrivers\psql>mingw32-make
  2. mingw32-make -f Makefile.Debug all
  3. mingw32-make[1]: Entering directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/psq
  4. l'
  5. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  6. DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
  7. DQT_CORE_LIB -DQT_THREAD_SUPPORT -I'../../../../include/QtCore' -I'../../../../i
  8. nclude/QtSql' -I'../../../../include' -I'c:/Program Files/PostgreSQL/9.0/include
  9. ' -I'../../../../include/ActiveQt' -I'tmp/moc/debug_shared' -I'../../../../mkspe
  10. cs/win32-g++' -o tmp/obj/debug_shared/main.o main.cpp
  11. g++: CreateProcess: No such file or directory
  12. mingw32-make[1]: *** [tmp/obj/debug_shared/main.o] Error 1
  13. mingw32-make[1]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/psql
  14. '
  15. mingw32-make: *** [debug-all] Error 2
To copy to clipboard, switch view to plain text mode