Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt and embedded Firebird DB
Forum Updated to NodeBB v4.3 + New Features

Qt and embedded Firebird DB

Scheduled Pinned Locked Moved General and Desktop
13 Posts 2 Posters 3.2k Views 1 Watching
  • 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.
  • guidupasG Offline
    guidupasG Offline
    guidupas
    wrote on last edited by
    #4

    I have installed Qt 5.4 and Firebird 2.5 (Mac OS X 64-bit Classic, Superclassic & Embedded - Intel)

    The Firebird 2.5 installation creates a firebird.framework at my computer. Now I am trying to make a connection with Qt but I receive a "driver not loaded" message.

    Can someone help me please?

    Att.
    Guilherme Cortada Dupas

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      I'd say the firebird plugin doesn't find your Firebird libraries.

      Have a look at the output of otool -L on the Qt Firebird plugin to see what it's currently missing

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • guidupasG Offline
        guidupasG Offline
        guidupas
        wrote on last edited by
        #6

        I am not figuring out how to link the plugin with Qt. How can I do that?

        Att.
        Guilherme Cortada Dupas

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #7

          You don't link plugins, they are loaded at runtime and yours is probably not finding the Firebird library. Hence the check with otool

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • guidupasG Offline
            guidupasG Offline
            guidupas
            wrote on last edited by
            #8

            Solved

            Tutorial above:

            TUTORIAL: CREATING FIREBIRD PLUGIN FOR MAC OSX WITH QT

            QT 5.4.0
            FIREBIRD 2.5 (Mac OS X 64-bit Classic, SuperClassic & Embedded - Intel)

            1 - Install Qt

            2 - Install Firebird
            Firebird will be installed as a Framework at /Library/Frameworks/Firebird.framework

            3 - Open the file qsql_ibase.pri
            File found in:
            $ QTDIR / Src / qtbase / src / sql / drivers / ibase /

            4 - Leave only lines 1 and 2
            ex:
            HEADERS + = $$ PWD / qsql_ibase_p.h
            SOURCES + = $$ PWD / qsql_ibase.cpp

            5 - In the terminal go to the folder:
            $ QTDIR / Src / qtbase / src / plugins / sqldrivers / ibase /

            6 - Run the command:
            $ QTDIR / clang_64 / bin / qmake -spec macx-g ++ -o Makefile "IncludePath + = / Library / Frameworks / Firebird.framework / Versions / Current / Headers" "LIBS + = - L / Library / Frameworks / Firebird.framework / Versions / Current / Libraries -lfbclient "ibase.pro

            7 - In the same folder run the Make command

            8 - In the folder:
            $ QTDIR / Src / qtbase / plugins / sqldrivers /
            Two files are created:
            libqsqlibase_debug.dylib
            libqsqlibase.dylib

            9 - Copy these two files to the folder:
            $ QTDIR / clang_64 / plugins / sqldrivers /

            Att.
            Guilherme Cortada Dupas

            1 Reply Last reply
            0
            • guidupasG Offline
              guidupasG Offline
              guidupas
              wrote on last edited by
              #9

              Thanks for all replies

              Att.
              Guilherme Cortada Dupas

              1 Reply Last reply
              0
              • guidupasG Offline
                guidupasG Offline
                guidupas
                wrote on last edited by
                #10

                Well, I created the driver, but how do I now to make it embedded?

                Att.
                Guilherme Cortada Dupas

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  Do you mean embed in the application bundle ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • guidupasG Offline
                    guidupasG Offline
                    guidupas
                    wrote on last edited by
                    #12

                    Yes. With all functionalities inside the app bundle.

                    Att.
                    Guilherme Cortada Dupas

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      It should be deployed automatically when calling macdeployqt

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved