PDA

View Full Version : [QT] Compiling driver for FireBird



maciej1234
7th February 2011, 15:50
Hello everyone.
Trying to compile driver for FireBird qt-but I can not deal with it.
I have Windows XP, QT 4.7.1, FireBird SuperServer ver. 2.5.0.26074 Firbird WxDev-2.5 and C + +.

FireBird is installed on C:\Firebird and it works
QT is C:\Qt
WxDev-C++ to C:\Dev-Cpp

I added the environment variables:
User-variables for "my xp"this entire entry in the Path variable: Code:
C:\Firebird\bin c:\Qt\4.7.1\bin;% PATH%

-Variable System behold the full entry in the variable Path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Firebird\bin;c:\Qt\4.7.1\bin;%PATH% ;c:\Dev-Cpp\bin;

Are these entries for FireBird WxDev-QT and C + + is correct?

Next go to C:\Qt\4.7.1\src\plugins\sqldrivers\ibase lest skompilowadc stewrownik QT to FireBird
First part of code:
qmake-o Makefile "INCLUDEPATCH+=C:\\Firebird\\include" "LIBS+= C:\\Firebird\\lib-lfbclient_ms" ibase.pro

This command passes without any interference there are any additional files.

Then enter code:
mingw32-make

and here I have the following errors:


C:\Qt\4.7.1\src\plugins\sqldrivers\ibase>mingw32-make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/4.7.1/src/plugins/sqldrivers/ibase'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_EVAL -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_MMX
EXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\.
.\..\include\QtSql" -I"..\..\..\..\include" -I"..\..\..\..\include" -I"..\..\..\
..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++"
-o tmp\obj\debug_shared\main.o main.cpp
In file included from main.cpp:44:
../../../sql/drivers/ibase/qsql_ibase.h:48:19: ibase.h: No such file or director
y
In file included from main.cpp:44:
../../../sql/drivers/ibase/qsql_ibase.h:87: error: expected `)' before "connecti
on"
mingw32-make[1]: *** [tmp/obj/debug_shared/main.o] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/4.7.1/src/plugins/sqldrivers/ibase'
mingw32-make: *** [debug-all] Error 2

I tried according to the suggestions from another forum to convert the file ibase.pro is his original form:


TARGET = qsqlibase

SOURCES = main.cpp
include(../../../sql/drivers/ibase/qsql_ibase.pri)

include(../qsqldriverbase.pri)

I changed to:


TARGET = qsqlibase

HEADERS = ../../../sql/drivers/ibase/qsql_ibase.h
SOURCES = main.cpp \
../../../sql/drivers/ibase/qsql_ibase.cppqsql_ibase.cpp

INCLUDEPATCH+=C:\\Firebird\\include
LIBS+=C:\\Firebird\\lib -lfbclient_ms.lib

unix:!contains( LIBS, .*gds.* ):!contains( LIBS, .*libfb.* ):LIBS *= -lgds

win32:!contains( LIBS, .*gds.* ):!contains( LIBS, .*fbclient.* ) {
!win32-borland:LIBS *= fbclient_ms.lib
win32-borland:LIBS += gds32.lib
}

include(../qsqldriverbase.pri)


But I also did not help.
Please Help