How to create the plugin of Firebird IBASE for QT 5.10



  • 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... :-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.