crossplatform.ru

Здравствуйте, гость ( Вход | Регистрация )

 
Ответить в данную темуНачать новую тему
> Проблема при компиляции драйвера для PostgreSQL
netc
  опции профиля:
сообщение 25.11.2008, 12:42
Сообщение #1


Новичок


Группа: Новичок
Сообщений: 2
Регистрация: 25.11.2008
Пользователь №: 432

Спасибо сказали: 0 раз(а)




Репутация:   0  


Добрый день всем!

Нужно собрать драйвер к постгре
стоит все по умолчанию:

C:\Program Files\PostgreSQL\8.3\
C:\Qt\QtCreator\

открываю в нем проект C:\Qt\QtCreator\qt\src\plugins\sqldrivers\psql\ psql.pro

нажимаю собрать

получаю
Running build steps for project psql...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/QtCreator/mingw/bin/mingw32-make.exe debug -w
mingw32-make: Entering directory `C:/Qt/QtCreator/qt/src/plugins/sqldrivers/psql'
C:/Qt/QtCreator/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Qt/QtCreator/qt/src/plugins/sqldrivers/psql'
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_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\Qt\QtCreator\qt\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o debug\qsql_psql.o ..\..\..\sql\drivers\psql\qsql_psql.cpp
..\..\..\sql\drivers\psql\qsql_psql.cpp:53:22: libpq-fe.h: No such file or directory
..\..\..\sql\drivers\psql\qsql_psql.cpp:54:23: pg_config.h: No such file or directory
..\..\..\sql\drivers\psql\qsql_psql.cpp: In function `QSqlError qMakeError(const QString&, QSqlError::ErrorType, const QPSQLDriverPrivate*)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:151: error: `PQerrorMessage' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:151: warning: unused variable 'PQerrorMessage'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `bool QPSQLResultPrivate::processResults()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:161: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:162: error: `PGRES_TUPLES_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:165: error: `PQntuples' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:165: warning: unused variable 'PQntuples'
..\..\..\sql\drivers\psql\qsql_psql.cpp:167: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:167: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:162: warning: unused variable 'PGRES_TUPLES_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:161: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In function `void qDeallocatePreparedStmt(QPSQLResultPrivate*)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:229: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:231: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:231: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:232: error: `PQerrorMessage' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:232: warning: unused variable 'PQerrorMessage'
..\..\..\sql\drivers\psql\qsql_psql.cpp:231: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:231: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:233: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:229: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:233: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `void QPSQLResult::cleanup()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:263: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:263: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLResult::fetchLast()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:291: error: `PQntuples' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:291: warning: unused variable 'PQntuples'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual QVariant QPSQLResult::data(int)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:296: error: `PQnfields' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:296: warning: unused variable 'PQnfields'
..\..\..\sql\drivers\psql\qsql_psql.cpp:300: error: `PQftype' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:302: error: `PQgetvalue' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:303: error: `PQgetisnull' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:303: warning: unused variable 'PQgetisnull'
..\..\..\sql\drivers\psql\qsql_psql.cpp:379: error: `PQunescapeBytea' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:379: warning: unused variable 'PQunescapeBytea'
..\..\..\sql\drivers\psql\qsql_psql.cpp:300: warning: unused variable 'PQftype'
..\..\..\sql\drivers\psql\qsql_psql.cpp:302: warning: unused variable 'PQgetvalue'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLResult::isNull(int)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:393: error: `PQgetvalue' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:394: error: `PQgetisnull' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:393: warning: unused variable 'PQgetvalue'
..\..\..\sql\drivers\psql\qsql_psql.cpp:394: warning: unused variable 'PQgetisnull'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLResult::reset(const QString&)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:406: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:406: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual int QPSQLResult::numRowsAffected()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:417: error: `PQcmdTuples' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:417: warning: unused variable 'PQcmdTuples'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual QVariant QPSQLResult::lastInsertId() const':
..\..\..\sql\drivers\psql\qsql_psql.cpp:423: error: `Oid' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:423: error: expected `;' before "id"
..\..\..\sql\drivers\psql\qsql_psql.cpp:424: error: `id' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:424: error: `InvalidOid' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:424: warning: unused variable 'InvalidOid'
..\..\..\sql\drivers\psql\qsql_psql.cpp:423: warning: unused variable 'Oid'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual QSqlRecord QPSQLResult::record() const':
..\..\..\sql\drivers\psql\qsql_psql.cpp:436: error: `PQnfields' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:440: error: `PQfname' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:440: warning: unused variable 'PQfname'
..\..\..\sql\drivers\psql\qsql_psql.cpp:442: error: `PQfname' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:442: warning: unused variable 'PQfname'
..\..\..\sql\drivers\psql\qsql_psql.cpp:443: error: `PQftype' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:444: error: `PQfsize' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:445: error: `PQfmod' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:444: warning: unused variable 'PQfsize'
..\..\..\sql\drivers\psql\qsql_psql.cpp:445: warning: unused variable 'PQfmod'
..\..\..\sql\drivers\psql\qsql_psql.cpp:436: warning: unused variable 'PQnfields'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLResult::prepare(const QString&)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:543: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:545: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:545: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:548: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:548: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp:545: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:545: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:553: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:543: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:553: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLResult::exec()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:574: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:574: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In function `bool setEncodingUtf8(PGconn*)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:583: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:584: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:585: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:586: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:583: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:584: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:585: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp:586: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In function `void setDatestyle(PGconn*)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:591: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:592: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:593: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:594: error: `PQerrorMessage' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:594: warning: unused variable 'PQerrorMessage'
..\..\..\sql\drivers\psql\qsql_psql.cpp:593: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:595: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:591: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:592: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:595: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In function `QPSQLDriver::Protocol getPSQLVersion(PGconn*)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:601: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:602: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:603: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:603: error: `PGRES_TUPLES_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:604: error: `PQgetvalue' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:605: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:604: warning: unused variable 'PQgetvalue'
..\..\..\sql\drivers\psql\qsql_psql.cpp:605: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp:603: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:603: warning: unused variable 'PGRES_TUPLES_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:601: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:602: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In destructor `virtual QPSQLDriver::~QPSQLDriver()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:679: error: `PQfinish' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:679: warning: unused variable 'PQfinish'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLDriver::open(const QString&, const QString&, const QString&, const QString&, int, const QString&)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:756: error: `PQconnectdb' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:757: error: `PQstatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:757: error: `CONNECTION_BAD' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:760: error: `PQfinish' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:760: warning: unused variable 'PQfinish'
..\..\..\sql\drivers\psql\qsql_psql.cpp:757: warning: unused variable 'PQstatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:757: warning: unused variable 'CONNECTION_BAD'
..\..\..\sql\drivers\psql\qsql_psql.cpp:756: warning: unused variable 'PQconnectdb'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual void QPSQLDriver::close()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:786: error: `PQfinish' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:786: warning: unused variable 'PQfinish'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLDriver::beginTransaction()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:804: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:805: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:805: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:806: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:806: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp:805: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:805: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:811: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:804: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:811: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLDriver::commitTransaction()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:821: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:822: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:822: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:823: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:823: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp:822: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:822: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:828: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:821: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:828: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLDriver::rollbackTransaction()':
..\..\..\sql\drivers\psql\qsql_psql.cpp:838: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:839: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:839: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:842: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:842: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp:839: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:839: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:845: error: `PQclear' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:838: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:845: warning: unused variable 'PQclear'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual QString QPSQLDriver::formatValue(const QSqlField&, bool) const':
..\..\..\sql\drivers\psql\qsql_psql.cpp:1121: error: `PQescapeBytea' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1121: warning: unused variable 'PQescapeBytea'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `virtual bool QPSQLDriver::isOpen() const':
..\..\..\sql\drivers\psql\qsql_psql.cpp:1148: error: `PQstatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1148: error: `CONNECTION_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1148: warning: unused variable 'PQstatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1148: warning: unused variable 'CONNECTION_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `bool QPSQLDriver::subscribeToNotificationImplementation(const QString&)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:1169: error: `PQsocket' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1174: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1175: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1175: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1174: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1175: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1175: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1169: warning: unused variable 'PQsocket'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `bool QPSQLDriver::unsubscribeFromNotificationImplementation(const QString&)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:1206: error: `PQexec' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1207: error: `PQresultStatus' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1207: error: `PGRES_COMMAND_OK' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1206: warning: unused variable 'PQexec'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1207: warning: unused variable 'PQresultStatus'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1207: warning: unused variable 'PGRES_COMMAND_OK'
..\..\..\sql\drivers\psql\qsql_psql.cpp: In member function `void QPSQLDriver::_q_handleNotification(int)':
..\..\..\sql\drivers\psql\qsql_psql.cpp:1230: error: `PQconsumeInput' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1231: error: `PGnotify' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1231: error: `notify' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1231: error: `PQnotifies' was not declared in this scope
..\..\..\sql\drivers\psql\qsql_psql.cpp:1230: warning: unused variable 'PQconsumeInput'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1231: warning: unused variable 'PGnotify'
..\..\..\sql\drivers\psql\qsql_psql.cpp:1231: warning: unused variable 'PQnotifies'
mingw32-make[1]: Leaving directory `C:/Qt/QtCreator/qt/src/plugins/sqldrivers/psql'
mingw32-make: Leaving directory `C:/Qt/QtCreator/qt/src/plugins/sqldrivers/psql'
mingw32-make[1]: *** [debug/qsql_psql.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project psql
When executing build step 'Make'


т.е. проблема по сути в том, что он не находит заголовочные файлы

..\..\..\sql\drivers\psql\qsql_psql.cpp:53:22: libpq-fe.h: No such file or directory
..\..\..\sql\drivers\psql\qsql_psql.cpp:54:23: pg_config.h: No such file or directory

попробывал прописать в пути (path) добавил

C:\Program Files\PostgreSQL\8.3\include\;C:\Program Files\PostgreSQL\8.3\include\server\

т.е. те самые папки в которых нах-ся заг-ые файлы которые он не находит

все равно тоже самое -

..\..\..\sql\drivers\psql\qsql_psql.cpp:53:22: libpq-fe.h: No such file or directory
..\..\..\sql\drivers\psql\qsql_psql.cpp:54:23: pg_config.h: No such file or directory
и так далее...

что я неправильно делаю подскажите пожалуйста
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
ViGOur
  опции профиля:
сообщение 25.11.2008, 13:12
Сообщение #2


Мастер
******

Группа: Модератор
Сообщений: 3296
Регистрация: 9.10.2007
Из: Москва
Пользователь №: 4

Спасибо сказали: 231 раз(а)




Репутация:   40  


Цитата(netc @ 25.11.2008, 12:42) *
т.е. проблема по сути в том, что он не находит заголовочные файлы

..\..\..\sql\drivers\psql\qsql_psql.cpp:53:22: libpq-fe.h: No such file or directory
..\..\..\sql\drivers\psql\qsql_psql.cpp:54:23: pg_config.h: No such file or directory

попробывал прописать в пути (path) добавил
Ты правильно понял проблему, но прописывать нужно не в path, а во внутренние переменные среды %INCLUDE% и думаю не мешало бы прописать путь к либам в %LIB%, где это не QtCreator делается не знаю, так как пока не использовал его.

Сообщение отредактировал ViGOur - 25.11.2008, 13:13
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение
netc
  опции профиля:
сообщение 25.11.2008, 14:35
Сообщение #3


Новичок


Группа: Новичок
Сообщений: 2
Регистрация: 25.11.2008
Пользователь №: 432

Спасибо сказали: 0 раз(а)




Репутация:   0  


Цитата(ViGOur @ 25.11.2008, 13:12) *
а во внутренние переменные среды %INCLUDE% и думаю не мешало бы прописать путь к либам в %LIB%


насколько я понимаю если я добавлю переменную INCLUDE и присвою ей значение:

C:\Program Files\PostgreSQL\8.3\include\;C:\Program Files\PostgreSQL\8.3\include\server\

и еще сделаю переменную LIBS присвоив ей

C:\Program Files\PostgreSQL\8.3\lib\;C:\Program Files\PostgreSQL\8.3\include\server\lib\

то должно что-то поменяться, но не чего не меняеться также лабуда не находит

вот chast вывод set'a

INCLUDE=C:\Program Files\PostgreSQL\8.3\include\;C:\Program Files\PostgreSQL\8.3
\include\server\
LIBS=C:\Program Files\PostgreSQL\8.3\lib\;C:\Program Files\PostgreSQL\8.3\includ
e\server\lib\

может кто знает как же сделать или может кто знает где взять уже скомпиленный драйвер

просто под линухом проблемы не возникало ставил opensource edition + postgre
Перейти в начало страницы
 
Быстрая цитата+Цитировать сообщение

Быстрый ответОтветить в данную темуНачать новую тему
Теги
Нет тегов для показа


1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0




RSS Текстовая версия Сейчас: 17.10.2021, 21:21