PDA

View Full Version : POSTGRESQL driver for windows



drave
1st April 2010, 19:02
Hi

anybody know what to do, to get this to build ??
looks like the moc.exe(?) didnt do its thing

thanks

C:\Qt\2010.02.1\qt\src\plugins\sqldrivers\psql>qmake "INCLUDEPATH+=%PGINCLUDE%" "LIBS+=%PGLIBS%" psql.pro
C:\Qt\2010.02.1\qt\src\plugins\sqldrivers\psql>
C:\Qt\2010.02.1\qt\src\plugins\sqldrivers\psql>nmake

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

"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" -f Makefile.Debug all

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

C:/Qt/2010.02.1/qt/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THRE
AD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\PROGRA~2\POSTGR~1\8.4\include" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\..\..\sql\drivers\psql\qsql_psql.h -o tmp\moc\debug_shared\moc_qsql_psql.cpp

g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_COR
E_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\PROGRA~2\POSTGR~1\8.4\include" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\moc_qsql_psql.o tmp\moc\debug_shared\moc_qsql_psql.cpp

g++.EXE: tmp\moc\debug_shared\moc_qsql_psql.cpp: No such file or directory
g++.EXE: no input files
NMAKE : fatal error U1077: 'C:\Qt\2010.02.1\mingw\bin\g++.EXE' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
Stop.

Lesiok
2nd April 2010, 07:42
Why You mix MSVC and mingw ???

drave
2nd April 2010, 12:44
I'm following the intsructions here

http://doc.qt.nokia.com/4.6/sql-driver.html#qpsql-for-postgresql-version-7-3-and-above