Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create the plugin of Firebird IBASE for QT 5.10

How to create the plugin of Firebird IBASE for QT 5.10

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 1.4k Views
  • 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.
  • RudlR Offline
    RudlR Offline
    Rudl
    wrote on last edited by
    #1

    Compiler: MSVC14
    QT: 5.10
    Firebird: 3.0.3
    OS: Windows 10

    I tried first to compile following these instructions: http://doc.qt.io/qt-5/sql-driver.html.

    cd %QTDIR%\qtbase\src\plugins\sqldrivers
    qmake -- IBASE_INCDIR=C:/interbase/include IBASE_LIBS=-lfbclient
    nmake sub-ibase
    

    But this didn't work. qmake gave me the output:

    Configure summary:
    QT Sql:
    InterBase..........................................................no
    

    After some research in the internet I found a solution:

    Uncomment # QMAKE_USE += ibase in your ibase.pro.

    Then compile the driver the old way:

    cd %QTDIR%\src\plugins\sqldrivers\ibase
    qmake "INCLUDEPATH+=C:\firebird\include" "LIBS+=C:\firebird\lib\lfbclient_ms.lib" ibase.pro
    nmake
    

    I hope this will save some of your time... :-)

    1 Reply Last reply
    5
    • V Offline
      V Offline
      Vladimir Malinovsky
      wrote on last edited by
      #2

      Thank you so much, dear colleague!
      I want to make a remark to create a driver for a bunch of Qt 5.13.2, Firebird 4.0 (beta) and MS VS 2017. In this case, for 32-bit.

      Note. I have:

      QT Installation Directory: D:\Tools\Qt
      Firebird Installation Directory: D:\Tools\FB\Servers\40

      1. Run cmd.exe.
      2. Run the command:
        cd D:\Tools\Qt\5.13.2\msvc2017\bin
      3. Perform:
        qtenv2.bat
      4. Perform:
        "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"vcvarsall.bat x86
      5. Perform:
        cd D:\Tools\Qt\5.13.2\Src\qtbase\src\plugins\sqldrivers\ibase
      6. Then open the ibase.pro file for editing, find the line
        QMAKE_USE + = ibase
        Put the comment character # at the beginning of the line:
        #QMAKE_USE + = ibase
        Save the ibase.pro file.
      7. Perform:
        nmake clean
        8.Perform:
        qmake "INCLUDEPATH+=D:\Tools\FB\Servers\40\include" "LIBS+=D:\Tools\FB\Servers\40\lib\fbclient_ms.lib" ibase.pro
        9.Perform:
        nmake
      8. Thats all! See results in
        D:\Tools\Qt\5.13.2\Src\qtbase\src\plugins\sqldrivers\plugins\sqldrivers

      Thanks again.

      I hope these lines also save some time.

      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