Hello,
in my App the QPSQL driver is not loaded..
QSqlDatabase: QPSQL driver not loaded
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:
cd C:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=C:\\Program Files\\PostgreSQL\\9.1\\include" "LIBS+= C:\\Program Files\\PostgreSQL\\9.1\\lib\\libpg.lib" psql.pro
nmake
cd C:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=C:\\Program Files\\PostgreSQL\\9.1\\include" "LIBS+= C:\\Program Files\\PostgreSQL\\9.1\\lib\\libpg.lib" psql.pro
nmake
To copy to clipboard, switch view to plain text mode
the result of nmake was:
c:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql>nmake
Microsoft (R) Program Maintenance Utility, Version 10.00.30319.01
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile.Debug
Microsoft (R) Program Maintenance Utility, Version 10.00.30319.01
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
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
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
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.
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
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
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 .
.\..\..\sql\drivers\psql\qsql_psql.h -o debug\moc_qsql_psql.cpp
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
-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.
res qsqlpsqld_resource.rc
Der Befehl "rc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
NMAKE : fatal error U1077: "rc": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"": Rückgabe-Code "0x2"
Stop.
c:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql>
c:\QtSDK\QtSources\4.8.1\src\plugins\sqldrivers\psql>nmake
Microsoft (R) Program Maintenance Utility, Version 10.00.30319.01
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile.Debug
Microsoft (R) Program Maintenance Utility, Version 10.00.30319.01
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
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
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
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.
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
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
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 .
.\..\..\sql\drivers\psql\qsql_psql.h -o debug\moc_qsql_psql.cpp
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
-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.
res qsqlpsqld_resource.rc
Der Befehl "rc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
NMAKE : fatal error U1077: "rc": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"": Rückgabe-Code "0x2"
Stop.
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
Bookmarks