Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QIBASE driver not loaded

    General and Desktop
    sql ibase firebird plugin
    2
    2
    661
    Loading More Posts
    • 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.
    • rudag
      rudag last edited by

      Hello everybody,

      Unfortunately I HAVE to connect to a Firebird database and I'm getting all sorts of errors possible. After struggling for 2 days trying to build the lib, finally I could do it. I commented the follow line in the .pro file:

      QMAKE_USE += ibase
      

      and got the .dll and .a files. Then I moved the .a files (libqsqlibase and libqsqlibased) to the "lib" folder and the .dll files (qsqlibase and qsqlibased) to the "bin" folder.

      And now this piece of code:

      QSqlDatabase db = QSqlDatabase::addDatabase("QIBASE");
      

      is returning this error:

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

      Have I done something wrong? Maybe I've built the dlls in a wrong way?

      1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        Make sure that all needed dlls are found when trying to load the ibase plugin -> check with Dependency Walker if the ibase plugin has all it's dependencies available.

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post