cd %QTDIR%\src\plugins\sqldrivers\ibaseqmake -o Makefile "INCLUDEPATH+=C:\Program Files\Firebird\Firebird_2_1\include" "LIBS+=-lC:\Program Files\Firebird|Firebird_2_1\lib\fbclient_ms" ibase.promake
mingw32-make -f Makefile.Debug allmingw32-make[1]: Entering directory `C:/Qt/4.3.0/src/plugins/sqldrivers/ibase'g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.0\plugins\sqldrivers\libqsqlibased4.a -o "..\..\..\..\plugins\sqldrivers\qsqlibased4.dll" tmp\obj\debug_shared\main.o tmp\obj\debug_shared\qsql_ibase.o -L"c:\Qt\4.3.0\lib" -L"c:\Qt\4.3.0\lib" tmp\obj\debug_shared\qsqlibased_resource_res.o -lc:\Program Files\Firebird\Firebird_2_1\lib\fbclient_ms -lQtSqld4 -lQtCored4g++: Files\Firebird\Firebird_2_1\lib\fbclient_ms: No such file or directorymingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlibased4.dll] Error 1mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/src/plugins/sqldrivers/ibase'mingw32-make[1]: *** [debug-all] Error 2
Запуск...QSqlDatabase: QIBASE driver not loadedQSqlDatabase: available drivers: QSQLITE QODBC3 QODBCCannot open database: QSqlError(-1, "Driver not loaded", "Driver not loaded") ---------------------- Нормальное завершение ----------------------
TARGET = qsqlibaseHEADERS = ../../../sql/drivers/ibase/qsql_ibase.hSOURCES = main.cpp \ ../../../sql/drivers/ibase/qsql_ibase.cppunix:!contains( LIBS, .*gds.* ):!contains( LIBS, .*libfb.* ):LIBS *= -lfbclientwin32:!contains( LIBS, .*gds.* ):!contains( LIBS, .*fbclient.* ) { !win32-borland:LIBS *= -lgds32_ms win32-borland:LIBS += gds32.lib}include(../qsqldriverbase.pri)
D:\qt\qt\src\plugins\sqldrivers\ibase>cd %QTDIR%\src\plugins\sqldrivers\ibaseD:\qt\qt\src\plugins\sqldrivers\ibase>qmake "INCLUDEPATH+=C:\ib\include" ibase.proD:\qt\qt\src\plugins\sqldrivers\ibase>nmakeMicrosoft (R) Program Maintenance Utility Version 6.00.8168.0Copyright (C) Microsoft Corp 1988-1998. All rights reserved. NMAKE -f Makefile.Debug allMicrosoft (R) Program Maintenance Utility Version 6.00.8168.0Copyright (C) Microsoft Corp 1988-1998. All rights reserved. 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\QtSql" -I"..\..\..\..\include" -I"c:\ib\include" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qsql_ibase.o ..\..\..\sql\drivers\ibase\qsql_ibase.cpp..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'void initDA(XSQLDA*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:122: error: 'SQL_INT64' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:127: error: 'SQL_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:128: error: 'SQL_TYPE_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:129: error: 'SQL_TYPE_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'QVariant::Type qIBaseTypeName(int, bool)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:176: error: 'blr_sql_time' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:178: error: 'blr_sql_date' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:180: error: 'blr_timestamp' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:188: error: 'blr_int64' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'QVariant::Type qIBaseTypeName2(int, bool)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:208: error: 'SQL_INT64' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:213: error: 'SQL_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:215: error: 'SQL_TYPE_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:217: error: 'SQL_TYPE_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: At global scope:..\..\..\sql\drivers\ibase\qsql_ibase.cpp:228: error: 'ISC_TIMESTAMP' does not name a type..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'QDateTime fromTimeStamp(char*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:246: error: 'ISC_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:246: error: expected primary-expression before 'int'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:247: error: expected primary-expression before 'int'..\..\..\sql\drivers\ibase\qsql_ibase.cpp: At global scope:..\..\..\sql\drivers\ibase\qsql_ibase.cpp:252: error: 'ISC_TIME' does not name a type..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'QTime fromTime(char*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:263: error: 'ISC_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:263: error: expected primary-expression before 'int'..\..\..\sql\drivers\ibase\qsql_ibase.cpp: At global scope:..\..\..\sql\drivers\ibase\qsql_ibase.cpp:268: error: 'ISC_DATE' does not name a type..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'QDate fromDate(char*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:284: error: 'ISC_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:284: error: expected primary-expression before 'int'..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'char* readArrayBuffer(QList<QVariant>&, char*, short int, short int*, ISC_ARRAY_DESC*, QTextCodec*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:535: error: 'blr_int64' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:544: error: 'blr_timestamp' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:547: error: 'ISC_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:550: error: 'blr_sql_time' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:553: error: 'ISC_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:556: error: 'blr_sql_date' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:559: error: 'ISC_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In function 'char* createArrayBuffer(char*, const QList<QVariant>&, QVariant::Type, short int, ISC_ARRAY_DESC*, QString&, QTextCodec*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:736: error: 'ISC_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:736: error: expected primary-expression before ')' token..\..\..\sql\drivers\ibase\qsql_ibase.cpp:736: error: expected ')' before 'buffer'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:742: error: 'ISC_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:742: error: expected primary-expression before ')' token..\..\..\sql\drivers\ibase\qsql_ibase.cpp:742: error: expected ')' before 'buffer'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:749: error: 'ISC_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:749: error: expected primary-expression before ')' token..\..\..\sql\drivers\ibase\qsql_ibase.cpp:749: error: expected ')' before 'buffer'..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In member function 'virtual bool QIBaseResult::prepare(const QString&)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:910: error: 'SQL_DIALECT_V6' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In member function 'virtual bool QIBaseResult::exec()':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:997: error: 'SQL_INT64' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1024: error: 'SQL_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1025: error: 'ISC_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1025: error: expected primary-expression before ')' token..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1025: error: expected ')' before 'd'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1027: error: 'SQL_TYPE_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1028: error: 'ISC_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1028: error: expected primary-expression before ')' token..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1028: error: expected ')' before 'd'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1030: error: 'SQL_TYPE_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1031: error: 'ISC_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1031: error: expected primary-expression before ')' token..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1031: error: expected ')' before 'd'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1061: error: 'SQL_DIALECT_V6' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1063: error: 'SQL_DIALECT_V6' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In member function 'virtual bool QIBaseResult::gotoNext(QVector<QVariant>&, int)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1102: error: 'SQL_DIALECT_V6' was notdeclared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1127: warning: enumeration value 'LowPrecisionDouble' not handled in switch..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1151: error: 'SQL_INT64' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1178: error: 'SQL_TIMESTAMP' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1181: error: 'SQL_TYPE_TIME' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1184: error: 'SQL_TYPE_DATE' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp: In member function 'void QIBaseDriver::qHandleEventNotification(void*)':..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1843: error: 'ISC_ULONG' was not declared in this scope..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1843: error: expected ';' before 'counts'..\..\..\sql\drivers\ibase\qsql_ibase.cpp:1844: error: 'counts' was not declared in this scopeNMAKE : fatal error U1077: 'g++' : return code '0x1' Stop.NMAKE : fatal error U1077: 'C:\WINDOWS\System32\NMAKE.EXE' : return code '0x2' Stop.
contains(sql-drivers, ibase) { HEADERS += drivers/ibase/qsql_ibase.h SOURCES += drivers/ibase/qsql_ibase.cpp INCLUDEPATH += "C:/Program Files/Firebird/Firebird_2_0/include" LIBS += "C:/Program Files/Firebird/Firebird_2_0/lib/fbclient_ms.lib" unix:LIBS *= -lgds win32 { !win32-borland:LIBS *= -lfbclient_ms win32-borland:LIBS += fbclient_ms.lib }}
TARGET = qsqlibaseHEADERS = ../../../sql/drivers/ibase/qsql_ibase.hSOURCES = main.cpp \ ../../../sql/drivers/ibase/qsql_ibase.cpp INCLUDEPATH += "C:/Program Files/Firebird/Firebird_2_0/include"LIBS += "C:/Program Files/Firebird/Firebird_2_0/lib/fbclient_ms.lib"unix:!contains( LIBS, .*gds.* ):!contains( LIBS, .*libfb.* ):LIBS *= -lgdswin32:!contains( LIBS, .*gds.* ):!contains( LIBS, .*fbclient.* ) { !win32-borland:LIBS *= -lfbclient_ms win32-borland:LIBS += fbclient_ms.lib}include(../qsqldriverbase.pri)
TARGET = qsqlibaseSOURCES = main.cppINCLUDEPATH += "C:/Program Files/Firebird/Firebird_2_0/include" "C:/QtSDK/Desktop/Qt/4.7.3/mingw/lib"LIBS += -L"C:/Program Files/Firebird/Firebird_2_0/lib/fbclient_ms.lib"include(../../../sql/drivers/ibase/qsql_ibase.pri)include(../qsqldriverbase.pri)
HEADERS += $$PWD/qsql_ibase.hSOURCES += $$PWD/qsql_ibase.cppunix { !contains(LIBS, .*gds.*):!contains(LIBS, .*libfb.*):LIBS += -lgds} else { !contains(LIBS, .*gds.*):!contains(LIBS, .*fbclient.*) { win32-borland:LIBS += gds32.lib else:LIBS += -lgds32_ms }}
C:\QtSDK\src\src\plugins\sqldrivers\ibase>makemake -f Makefile.Debug allmake[1]: Entering directory `C:/QtSDK/src/src/plugins/sqldrivers/ibase'g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,c:/QtSDK/src/plugins/sqldrivers/libqsqlibased4.a -o ../../../../plugins/sqldrivers/qsqlibased4.dll tmp/obj/debug_shared/main.o tmp/obj/debug_shared/qsql_ibase.o tmp/obj/debug_shared/moc_qsql_ibase.o -L'c:/QtSDK/src/lib' -L'c:/QtSDK/src/lib' tmp/obj/debug_shared/qsqlibased_resource_res.o "-LC:/Program Files/Firebird/Firebird_2_0/lib/fbclient_ms.lib" -lQtSqld4 -lQtCored4c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtSqld4collect2: ld returned 1 exit statusmake[1]: *** [../../../../plugins/sqldrivers/qsqlibased4.dll] Error 1make[1]: Leaving directory `C:/QtSDK/src/src/plugins/sqldrivers/ibase'make: *** [debug-all] Error 2