Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to Build plugin QIBASE for FIREBIRD QT 5.0.2
Forum Updated to NodeBB v4.3 + New Features

How to Build plugin QIBASE for FIREBIRD QT 5.0.2

Scheduled Pinned Locked Moved Installation and Deployment
16 Posts 5 Posters 15.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    insdo
    wrote on 26 Apr 2013, 14:21 last edited by
    #5

    Is it because I'm using the mingw compiler and incompatibility with libraries firebird?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Apr 2013, 15:02 last edited by
      #6

      That might be the case indeed, did you check what compiler they are using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        insdo
        wrote on 26 Apr 2013, 15:18 last edited by
        #7

        I'm using the mingw compiler? firebird now I do not know? as said in the documentation that led to compile now do not know ...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 26 Apr 2013, 15:23 last edited by
          #8

          If you refer to "this":http://www.firebirdsql.org/en/building-the-code/ page, they use visual studio.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • I Offline
            I Offline
            insdo
            wrote on 26 Apr 2013, 15:32 last edited by
            #9

            then mingw only serves to firebird linux?
            for firebird windows then have to use the compiler windows .. ?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 26 Apr 2013, 15:39 last edited by
              #10

              Please, at least do a little "research":http://bit.ly/15MrM7W.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lqsa
                wrote on 2 Oct 2014, 03:17 last edited by
                #11

                This works for me:

                Assume that firebird path is d:\firebird and Qt path is c:\qt

                • Open QT console and write:
                  cd C:\Qt\5.3\Src\qtbase\src\plugins\sqldrivers\ibase
                  qmake "INCLUDEPATH+=D:/firebird/include" "LIBS+=-LD:/firebird/lib" "LIBS+=-lfbclient_ms" ibase.pro
                  mingw32-make
                  mingw32-make install

                In C:\Qt\5.3\mingw482_32\plugins\sqldrivers appears qsqlibase.dll and qsqlibased.dll

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  mr_wallyit
                  wrote on 23 Jan 2015, 09:53 last edited by
                  #12

                  Hello,

                  I have this error:
                  .obj/release/main.o:main.cpp:(.text+0x50): undefined reference to QIBaseDriver::QIBaseDriver(QObject*)' .obj/release/moc_qsql_ibase_p.o:moc_qsql_ibase_p.cpp:(.text+0x45): undefined reference to QIBaseDriver::qHandleEventNotification(void*)'
                  .obj/release/moc_qsql_ibase_p.o:moc_qsql_ibase_p.cpp:(.text+0x102): undefined reference to `QIBaseDriver::qHandleEventNotification(void*)'

                  What do you think?

                  Thanks

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mr_wallyit
                    wrote on 23 Jan 2015, 09:53 last edited by
                    #13

                    Hello,

                    I have this error:
                    .obj/release/main.o:main.cpp:(.text+0x50): undefined reference to QIBaseDriver::QIBaseDriver(QObject*)' .obj/release/moc_qsql_ibase_p.o:moc_qsql_ibase_p.cpp:(.text+0x45): undefined reference to QIBaseDriver::qHandleEventNotification(void*)'
                    .obj/release/moc_qsql_ibase_p.o:moc_qsql_ibase_p.cpp:(.text+0x102): undefined reference to `QIBaseDriver::qHandleEventNotification(void*)'

                    What do you think?

                    Thanks

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mr_wallyit
                      wrote on 23 Jan 2015, 10:31 last edited by
                      #14

                      Hello,

                      i changed ibase.pro with this source code so now it builds.

                      TARGET = qsqlibase

                      INCLUDEPATH += c:/firebird_2.5/WOW64/lib

                      win32:INCLUDEPATH += C:/Firebird_2_5/include
                      win32:LIBS += -lfbclient_ms
                      win32:LIBS += -LC:/Firebird_2_5/WOW64/lib

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

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

                      include(../qsqldriverbase.pri)

                      HEADERS +=
                      ../../../sql/drivers/ibase/qsql_ibase_p.h

                      SOURCES +=
                      ../../../sql/drivers/ibase/qsql_ibase.cpp

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mr_wallyit
                        wrote on 23 Jan 2015, 10:31 last edited by
                        #15

                        Hello,

                        i changed ibase.pro with this source code so now it builds.

                        TARGET = qsqlibase

                        INCLUDEPATH += c:/firebird_2.5/WOW64/lib

                        win32:INCLUDEPATH += C:/Firebird_2_5/include
                        win32:LIBS += -lfbclient_ms
                        win32:LIBS += -LC:/Firebird_2_5/WOW64/lib

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

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

                        include(../qsqldriverbase.pri)

                        HEADERS +=
                        ../../../sql/drivers/ibase/qsql_ibase_p.h

                        SOURCES +=
                        ../../../sql/drivers/ibase/qsql_ibase.cpp

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          pkwiecien
                          wrote on 21 Jul 2015, 19:18 last edited by
                          #16

                          Hello,

                          I've recently built two versions of ibase (for firebird) driver.
                          Most helpful was entry on QT documentation and lqsa answer posted above.

                          I was having troubles with make command, giving me missing ibase.h file.
                          I've changed to things: reinstalled firebird to the folder where path does not include any spaces and have changed all "" to "/" (i had "" because i was copying my paths from explorer window). Now it works perfectly.

                          If you are in need to re-compile driver for newer version of firebird be sure to delete a content from sqldrivers/ibase folder (it was previously created for another version of firebird).

                          Hope that will help someone.
                          CHers

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved