tags:

views:

36

answers:

0

I try build plugin to communicate with postgresql and I use this commands:

http://www.ldc.usb.ve/docs/qt/sql-driver.html#qpsql-for-postgresql-version-7-3-and-above

(for windows)

I have QT4, and gcc 4.3.3 and windows xp

First command has been executed without errors, but when i run nmake i have these errors:

C:\Qt\2010.03\qt\src\plugins\sqldrivers\psql>nmake

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

        "d:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" -f Makef
ile.Debug all

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

        g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_S
UPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_S
QL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I'../../../../include/QtCore' -I'../..
/../../include/QtSql' -I'../../../../include' -I'd:/Program' -I'Files/PostgreSQL
/8.4/include' -I'../../../../include/ActiveQt' -I'tmp/moc/debug_shared' -I'../..
/../../mkspecs/win32-g++' -o tmp/obj/debug_shared/qsql_psql.o ../../../sql/drive
rs/psql/qsql_psql.cpp
In file included from ../../../sql/drivers/psql/qsql_psql.cpp:42:
../../../sql/drivers/psql/qsql_psql.h:45:30: error: QtSql/qsqlresult.h: No such
file or directory
../../../sql/drivers/psql/qsql_psql.h:46:30: error: QtSql/qsqldriver.h: No such
file or directory
../../../sql/drivers/psql/qsql_psql.cpp:44:30: error: qcoreapplication.h: No suc
h file or directory
../../../sql/drivers/psql/qsql_psql.cpp:45:22: error: qvariant.h: No such file o
r directory
../../../sql/drivers/psql/qsql_psql.cpp:46:23: error: qdatetime.h: No such file
or directory
../../../sql/drivers/psql/qsql_psql.cpp:47:21: error: qregexp.h: No such file or
 directory
../../../sql/drivers/psql/qsql_psql.cpp:48:23: error: qsqlerror.h: No such file
or directory
../../../sql/drivers/psql/qsql_psql.cpp:49:23: error: qsqlfield.h: No such file
or directory
../../../sql/drivers/psql/qsql_psql.cpp:50:23: error: qsqlindex.h: No such file
or directory
../../../sql/drivers/psql/qsql_psql.cpp:51:24: error: qsqlrecord.h: No such file
 or directory
../../../sql/drivers/psql/qsql_psql.cpp:52:23: error: qsqlquery.h: No such file
or directory
../../../sql/drivers/psql/qsql_psql.cpp:53:29: error: qsocketnotifier.h: No such
 file or directory
../../../sql/drivers/psql/qsql_psql.cpp:54:25: error: qstringlist.h: No such fil
e or directory
../../../sql/drivers/psql/qsql_psql.cpp:55:20: error: qmutex.h: No such file or
directory
../../../sql/drivers/psql/qsql_psql.cpp:58:22: error: libpq-fe.h: No such file o
r directory
../../../sql/drivers/psql/qsql_psql.cpp:59:23: error: pg_config.h: No such file
or directory
In file included from ../../../sql/drivers/psql/qsql_psql.cpp:42:
../../../sql/drivers/psql/qsql_psql.h:56: error: expected constructor, destructo
r, or type conversion before 'typedef'
../../../sql/drivers/psql/qsql_psql.h:61: error: expected constructor, destructo
r, or type conversion before 'class'
../../../sql/drivers/psql/qsql_psql.h:67: error: expected class-name before '{'
token
../../../sql/drivers/psql/qsql_psql.h:73: error: 'QVariant' does not name a type

../../../sql/drivers/psql/qsql_psql.h:81: error: 'QVariant' does not name a type

../../../sql/drivers/psql/qsql_psql.h:83: error: expected ',' or '...' before '&
' token
../../../sql/drivers/psql/qsql_psql.h:83: error: ISO C++ forbids declaration of
'QString' with no type
../../../sql/drivers/psql/qsql_psql.h:86: error: 'QSqlRecord' does not name a ty
pe
../../../sql/drivers/psql/qsql_psql.h:87: error: 'QVariant' does not name a type

../../../sql/drivers/psql/qsql_psql.h:88: error: expected ',' or '...' before '&
' token
../../../sql/drivers/psql/qsql_psql.h:88: error: ISO C++ forbids declaration of
'QString' with no type
../../../sql/drivers/psql/qsql_psql.h:92: error: ISO C++ forbids declaration of
'QPSQLResultPrivate' with no type
../../../sql/drivers/psql/qsql_psql.h:92: error: expected ';' before '*' token
../../../sql/drivers/psql/qsql_psql.h:96: error: expected class-name before '{'
token
../../../sql/drivers/psql/qsql_psql.h:97: error: ISO C++ forbids declaration of
'Q_OBJECT' with no type
../../../sql/drivers/psql/qsql_psql.h:98: error: expected ';' before 'public'
../../../sql/drivers/psql/qsql_psql.h:110: error: expected `)' before '*' token
../../../sql/drivers/psql/qsql_psql.h:111: error: expected `)' before '*' token
../../../sql/drivers/psql/qsql_psql.h:113: error: 'DriverFeature' has not been d
eclared
../../../sql/drivers/psql/qsql_psql.h:114: error: expected ',' or '...' before '
&' token
../../../sql/drivers/psql/qsql_psql.h:119: error: ISO C++ forbids declaration of
 'QString' with no type
../../../sql/drivers/psql/qsql_psql.h:122: error: ISO C++ forbids declaration of
 'QSqlResult' with no type
../../../sql/drivers/psql/qsql_psql.h:122: error: expected ';' before '*' token
../../../sql/drivers/psql/qsql_psql.h:123: error: 'QStringList' does not name a
type
../../../sql/drivers/psql/qsql_psql.h:124: error: 'QSqlIndex' does not name a ty
pe
../../../sql/drivers/psql/qsql_psql.h:125: error: 'QSqlRecord' does not name a t
ype
../../../sql/drivers/psql/qsql_psql.h:127: error: 'Protocol' does not name a typ
e
../../../sql/drivers/psql/qsql_psql.h:128: error: 'QVariant' does not name a typ
e
../../../sql/drivers/psql/qsql_psql.h:130: error: 'QString' does not name a type

../../../sql/drivers/psql/qsql_psql.h:131: error: 'QString' does not name a type

../../../sql/drivers/psql/qsql_psql.h:138: error: expected `:' before 'Q_SLOTS'
../../../sql/drivers/psql/qsql_psql.h:139: error: expected primary-expression be
fore 'bool'
../../../sql/drivers/psql/qsql_psql.h:139: error: ISO C++ forbids declaration of
 'Q_SLOTS' with no type
../../../sql/drivers/psql/qsql_psql.h:139: error: expected ';' before 'bool'
../../../sql/drivers/psql/qsql_psql.h:140: error: expected ',' or '...' before '
&' token
../../../sql/drivers/psql/qsql_psql.h:140: error: ISO C++ forbids declaration of
 'QString' with no type
../../../sql/drivers/psql/qsql_psql.h:141: error: 'QStringList' does not name a
type
../../../sql/drivers/psql/qsql_psql.h:143: error: expected `:' before 'Q_SLOTS'
../../../sql/drivers/psql/qsql_psql.h:144: error: expected primary-expression be
fore 'void'
../../../sql/drivers/psql/qsql_psql.h:144: error: ISO C++ forbids declaration of
 'Q_SLOTS' with no type
../../../sql/drivers/psql/qsql_psql.h:144: error: expected ';' before 'void'
../../../sql/drivers/psql/qsql_psql.h:151: error: 'QT_END_NAMESPACE' does not na
me a type
In file included from ../../../sql/drivers/psql/qsql_psql.cpp:61:
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:344: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:349: error: expected constructor, destruc
tor, or type conversion before 'wcstombs'
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:352: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:353: error: expected constructor, destruc
tor, or type conversion before 'mbstowcs'
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:354: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:359: error: 'size_t' was not declared in
this scope
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:359: error: 'size_t' was not declared in
this scope
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:359: error: initializer expression list t
reated as compound expression
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:360: error: 'size_t' was not declared in
this scope
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:361: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:373: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:373: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:375: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:375: error: 'size_t' has not been declare
d
d:\cygnus\cygwin-b20\h-i586-cygwin32\bin\../lib/gcc/i386-pc-mingw32/4.3.3/../../
../../i386-pc-mingw32/include/stdlib.h:422: error: 'size_t' has not been declare
d
../../../sql/drivers/psql/qsql_psql.cpp:111: error: expected constructor, destru
ctor, or type conversion before '(' token
../../../sql/drivers/psql/qsql_psql.cpp:125: error: ISO C++ forbids declaration
of 'PGconn' with no type
../../../sql/drivers/psql/qsql_psql.cpp:125: error: expected ';' before '*' toke
n
../../../sql/drivers/psql/qsql_psql.cpp:127: error: 'Protocol' in class 'QPSQLDr
iver' does not name a type
../../../sql/drivers/psql/qsql_psql.cpp:128: error: ISO C++ forbids declaration
of 'QSocketNotifier' with no type
../../../sql/drivers/psql/qsql_psql.cpp:128: error: expected ';' before '*' toke
n
../../../sql/drivers/psql/qsql_psql.cpp:129: error: 'QStringList' does not name
a type
../../../sql/drivers/psql/qsql_psql.cpp:131: error: 'QStringList' has not been d
eclared
../../../sql/drivers/psql/qsql_psql.cpp:131: error: 'QSqlQuery' has not been dec
lared
../../../sql/drivers/psql/qsql_psql.cpp:131: error: 'QChar' has not been declare
d
../../../sql/drivers/psql/qsql_psql.cpp: In constructor 'QPSQLDriverPrivate::QPS
QLDriverPrivate()':
../../../sql/drivers/psql/qsql_psql.cpp:124: error: class 'QPSQLDriverPrivate' d
oes not have any field named 'connection'
../../../sql/drivers/psql/qsql_psql.cpp:124: error: class 'QPSQLDriverPrivate' d
oes not have any field named 'pro'
../../../sql/drivers/psql/qsql_psql.cpp:124: error: 'Version6' is not a member o
f 'QPSQLDriver'
../../../sql/drivers/psql/qsql_psql.cpp:124: error: class 'QPSQLDriverPrivate' d
oes not have any field named 'sn'
../../../sql/drivers/psql/qsql_psql.cpp: At global scope:
../../../sql/drivers/psql/qsql_psql.cpp:134: error: variable or field 'appendTab
les' declared void
../../../sql/drivers/psql/qsql_psql.cpp:134: error: 'QStringList' was not declar
ed in this scope
../../../sql/drivers/psql/qsql_psql.cpp:134: error: 'tl' was not declared in thi
s scope
../../../sql/drivers/psql/qsql_psql.cpp:134: error: 'QSqlQuery' was not declared
 in this scope
../../../sql/drivers/psql/qsql_psql.cpp:134: error: 't' was not declared in this
 scope
../../../sql/drivers/psql/qsql_psql.cpp:134: error: 'QChar' was not declared in
this scope
NMAKE : fatal error U1077: 'd:\cygnus\cygwin-b20\h-i586-cygwin32\bin\g++.EXE' :
return code '0x1'
Stop.
NMAKE : fatal error U1077: '"d:\Program Files\Microsoft Visual Studio 9.0\VC\bin
\nmake.exe"' : return code '0x2'
Stop.

C:\Qt\2010.03\qt\src\plugins\sqldrivers\psql>