Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

compile firebird driver


  • Moderators

    Hello

    Have you compiled the driver for the new version of Firebird? (3.0.3). I'm trying to do it and I can not:

    captura

    I have it installed and added to the PATH of the system.

    a greeting

    (sorry for my english, I'm using google translater)


  • Moderators

    Works!!

    I have compiled the driver using Qt MSVC2017 64 bits.

    Although it does not recognize the new type of boolean data that incorporates firebird 3.0. I do not know if you have to configure something, but by default it does not recognize it.

    Marco as solved as I managed to compile the driver.

    Thank you very much


  • Lifetime Qt Champion

    Hi,

    Did you try to follow the workflow ?


  • Moderators

    Hi

    First I installed firebird in C:\Firebird. And I added it to the system PATH.

    And then, as seen in the capture, I tried to compile with the instructions in the Qt documentation and can not find the installation of firebird.

    Firebird 2.5 creates a folder /bin inside the installation folder, version 3.0 does not create it and puts the executables in the installation folder. Could it be the error?


  • Lifetime Qt Champion

    AFAIK, the executable should not influence, it's the folder where the lib file is located that is important.


  • Moderators

    Oh! sorry, executables and lib (.dll) files. My incomplete message came out (remember that I use google translate :))

    In version 2.5 they are in the path C:\Firebird\bin and in version 3.0 in the path C:\Firebird.

    The .dll I have copied to the system folder, but it does not recognize them.

    as a curiosity: What does AFAIK?


  • Lifetime Qt Champion

    Don't put anything in your System folders.

    It's the .lib file that is of interest, where is that one ?

    AFAIK: As Far As I Know


  • Moderators

    Hi @SGaist

    Sorry for the delay, but I'm working hard :(

    The .lib files are in the path C: \ Firebird \ lib.

    I have seen in the SRC folder of Qt, that there is a configure.json file that contains the following:

    "ibase": {
                "label": "InterBase",
                "test": {
                    "include": "ibase.h"
                },
                "sources": [
                    { "libs": "-lgds32_ms", "condition": "config.win32" },
                    { "libs": "-lgds", "condition": "!config.win32" }
                ]
            },
    

    But the .lib files of firebird are not called * gds *, they are called * fbclient *, I have modified the .json by putting in its place fbclient, but it still does not work.

    :)


  • Lifetime Qt Champion

    You have to pass C:/Firebird/lib as additional path to search for libraries when preparing the build of the plugin.


  • Moderators

    Hi

    Yes, and from the folder * ibase *, when trying to compile now I get the error C:\Firebird\lib/fbclient_ms.lib: error adding symbols: File format not recognized

    I am trying to compile on a Win 64 bit, Firebird 64 bit system and yet the version of Qt mingw is 32 bits.

    I'm going to try the MSVC version, I have to install everything now :(

    (Sorry for my English, I used google translate)

    a greeting


  • Moderators

    Works!!

    I have compiled the driver using Qt MSVC2017 64 bits.

    Although it does not recognize the new type of boolean data that incorporates firebird 3.0. I do not know if you have to configure something, but by default it does not recognize it.

    Marco as solved as I managed to compile the driver.

    Thank you very much


Log in to reply