Results 1 to 3 of 3

Thread: Trouble compile QIBASE plugin on Windows

  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Trouble compile QIBASE plugin on Windows

    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

  2. #2
    Join Date
    Oct 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trouble compile QIBASE plugin on Windows

    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

  3. #3
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trouble compile QIBASE plugin on Windows

    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

Similar Threads

  1. QMYSQL Plugin does not compile
    By mmaayeh in forum Qt Tools
    Replies: 1
    Last Post: 24th April 2009, 07:43
  2. Trouble with plugin system's documentation
    By niklas in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2009, 22:07
  3. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  4. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 17:33
  5. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.