Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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:\Qt\Qt5.5.1\5.5\Src\qtbase\src\sql\drivers\ibase
    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
    C:\Qt\Qt5.5.1\5.5\mingw492_32\plugins\sqldrivers

    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

    Hi,

    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" ibase.pro

    but i get this error:- Cannot find file: ibase.pro

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

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

    C:\Qt\Qt5.5.1\5.5\Src\qtbase\src\sql\drivers\ibase\

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

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


  • Lifetime Qt Champion

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


Log in to reply