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 OSX deploying SQL drivers.
Forum Updated to NodeBB v4.3 + New Features

Qt OSX deploying SQL drivers.

Scheduled Pinned Locked Moved General and Desktop
11 Posts 2 Posters 2.3k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Hello guys, I am currently having some troubles to deploy my application and run it properly: I am using SQL driver for my database but when I try to launch application, it says:

    @
    // The list of all libraryPaths() from QCoreApplication.
    ("/Users/pb1/Projects/build-app-Debug/src/app/app.app/Contents/plugins", "/Developer/Qt/5.3/clang_64/plugins", "/Users/pb1/Projects/build-app-Debug/src/app/app.app/Contents/MacOS")

    "/Users/pb1/Projects/build-app-Debug/src/app"

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QMYSQL QMYSQL3 QSQLITE QODBC QODBC3 QPSQL QPSQL7
    "Driver not loaded Driver not loaded" -1 "-1"
    @

    I have manually added MySQL driver to @./Contents/plugins/@ and @./Contents/plugins/sqldrivers/@ but it did not work. What shall I do? I don't have any clue, thanks.

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

      Hi,

      did you use macdeployqt before deploying ?

      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
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        I have added:
        @
        QMAKE_POST_LINK += $$quote(macdeployqt $${OUTPUT}/App.app)
        @

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

          You should rather run it from the command line, it should not be a part of the build process

          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
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #5

            okay, the I have run it from external shell but it still did not help. Still it can't reach the plugin.

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

              Did you get any error messages when running 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
              • P Offline
                P Offline
                Peppy
                wrote on last edited by
                #7

                No, not at all.

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

                  That's pretty surprising, which version of Qt are you using ?

                  Did you call it on a clean rebuild of your application ?

                  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
                  • P Offline
                    P Offline
                    Peppy
                    wrote on last edited by
                    #9

                    Qt 5.3.0 and not, not yet... I will give it a shot ASAP.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      Peppy
                      wrote on last edited by
                      #10

                      Nothing really happened. :/

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

                        Sql plugins should be deployed however you might have problem with the sql client library, a patch for macdeployqt is waiting review.

                        I just spotted one thing that is wrong on your end: on OS X the folder name is not plugins it's PlugIns

                        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