Important: Please read the Qt Code of Conduct -

firebird-QIBASE compilations and plugin

  • Hi i have a QT source code which is using firebird SQL. It will connect to firebird SQL. anyway the source code doesn't compile and generate the error:-

    QSqlDatabase: QIBASE driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

    after some google, i realize i need to build and compile the QIBASE driver and load into the QT developments.

    below are my locations of the QIBASE driver and library files:-

    C:\Program Files\Firebird\Firebird_2_5\include
    C:\Program Files\Firebird\Firebird_2_5\lib\ fbclient_ms
    C:\Program Files\Firebird\Firebird_2_5\bin\fbclient.dll

    i believe all this paths are needed to compile it but im not successfull.

    after try this after some googling, i typed this at QT command prompt

    C:\Qt\Qt5.5.1\5.5\Src\qtbase\src\sql\drivers\ibase>qmake "C:\Program Files\Firebird\Firebird_2_5\include"
    "LIBS+=C:\ProgramFiles\Firebird\Firebird_2_5\lib\fbclient_ms.lib" "LIBS +=C:\Program Files\Firebird\Firebird_2_5\bin\fbclient.dll"

    i get response as below:-
    Cannot read C:/Program Files/Firebird/Firebird_2_5/include: Access is denied.
    Error processing project file:
    C:\Program Files\Firebird\Firebird_2_5\include

    basically im even unsure even if the above command is correct but for now i get the access denied error. im using windows 10 and im the administrator but why i still get this access denied??? anybody can point any guide on building & loading the QIBASE for qt5.

    im using :-
    QTcreator 3.5.1 based on QT 5.5.1 (MSVC 2013,32bit)

  • Lifetime Qt Champion


    From the looks of it, you are asking qmake to run in "C:\Program Files\Firebird\Firebird_2_5\include" which is likely not what you want. Aren't you missing INCLUDEPATH+= ?

  • Yup i did miss the includepath on the above command, anyway i try new command i found in this forum which worked for other people in this forum as below:-

    qmake "INCLUDEPATH+=C:\Program Files\Firebird\Firebird_2_5\include" "LIBS+=-lfbclient" LIBS+=-L"C:\Program Files\Firebird\Firebird_2_5\bin" LIBS+=-L"C:\Program Files\Firebird\Firebird_2_5\lib" LIBS+="-lfbclient_ms"

    but i get this error:- Cannot find file:

    my QT folders on the path:- C:\Qt\Qt5.5.1\5.5\Src\qtbase\src\sql\

    only have, no where else i can find the file, and on the ibase path:-


    only have (qsql_ibase.cpp,qsql_ibase.pri,qsql_ibase_p.h), dont have

    so as per above, do i need to create a files into the ibase folder?? just simply create it?? or i can still run some qmake commands without the file....

  • Lifetime Qt Champion

    It's in src/plugins/sqldrivers/ibase.

Log in to reply