PDA

View Full Version : Trouble compile QIBASE plugin on Windows



estanisgeyer
18th August 2009, 13:09
Hi friends,

I'm trying compile the QIBASE driver (Firebird 2.1.2) on Windows XP, QT 4.5.2, but I am facing some problems, see:

C:\Qt\4.5.2\src\plugins\sqldrivers\ibase>qmake "INCLUDEPATH+=C:\Firebird\include" "LIBS+=-LC:\Firebird\lib -lfbclient_ms" ibase.pro
C:\Qt\4.5.2\src\plugins\sqldrivers\ibase>make

mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/4.5.2/src/plugins/sqldrivers/ibase'
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"..\..\..\..\i
nclude\QtSql" -I"..\..\..\..\include" -I"c:\Firebird\include" -I"..\..\..\..\inc
lude\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp
\obj\debug_shared\main.o main.cpp
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"..\..\..\..\i
nclude\QtSql" -I"..\..\..\..\include" -I"c:\Firebird\include" -I"..\..\..\..\inc
lude\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp
\obj\debug_shared\qsql_ibase.o ..\..\..\sql\drivers\ibase\qsql_ibase.cpp
C:/Qt/4.5.2/bin/moc.exe -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_THRE
AD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..
\..\..\include" -I"c:\Firebird\include" -I"..\..\..\..\include\ActiveQt" -I"tmp\
moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\..\..\
sql\drivers\ibase\qsql_ibase.h -o tmp\moc\debug_shared\moc_qsql_ibase.cpp
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"..\..\..\..\i
nclude\QtSql" -I"..\..\..\..\include" -I"c:\Firebird\include" -I"..\..\..\..\inc
lude\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp
\obj\debug_shared\moc_qsql_ibase.o tmp\moc\debug_shared\moc_qsql_ibase.cpp
windres -i qsqlibased_resource.rc -o tmp\obj\debug_shared\qsqlibased_resource_re
s.o --include-dir=.
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.5.2\plugins\sqldrivers\libqsql
ibased4.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:\Qt\4.5.2\lib" -L"c:\Qt\4.5.2\lib" tmp\obj\debug_shared\qsqlibased_resourc
e_res.o -LC:\Firebird\lib -lfbclient_ms -lQtSqld4 -lQtCored4
Creating library file: c:\Qt\4.5.2\plugins\sqldrivers\libqsqlibased4.a
tmp/obj/debug_shared/qsql_ibase.o(.text+0x1b5): In function `Z13getIBaseErrorR7Q
StringPKiRlP10QTextCodec':
C:/Qt/4.5.2/src/plugins/sqldrivers/ibase/../../../sql/drivers/ibase/qsql_ibase.c
pp:83: undefined reference to `fb_interpret@12'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlibased4.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/4.5.2/src/plugins/sqldrivers/ibase'
mingw32-make: *** [debug-all] Error 2

Thanks for help,

Marcelo E. Geyer

guarib
13th October 2009, 23:13
1) Download and install Firebird.
3) Search for "include", "bin" and "lib" at instalation directory.
4) Enter Qt Command Prompt
5) Goes to src\plugins\sqldrivers\ibase
6) Try..

qmake "INCLUDEPATH+='XXXXXX'" "LIBS+=-lfbclient" "LIBS+=-L'YYYYYY'" "LIBS+=-L'ZZZZZZ'" LIBS+="-lfbclient_ms" ibase.pro

Where from what you get in 3:
XXXXXX = complete include path
YYYYYY = complete bin path
ZZZZZZ = complete lib path

Nageswararao
25th May 2011, 11:55
Hi friends,

I'm trying compile the QIBASE driver (Firebird 2.1) on Windows XP, QT 4.4.0,but i got QSqlDatabase: QIBASE driver not loaded.
Kindly requesting you to suggest some solution to resolve the issue.


Thanks
Nageswararao.Dadi