Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Debug in MAC OsX10.9

Debug in MAC OsX10.9

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 1.9k 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.
  • J Offline
    J Offline
    JorgeVdB
    wrote on last edited by
    #1

    Hi,

    I try to debug an external application.

    Everything is going well, compile right, macdeployqt works fine, but I have one problem...

    The application show me this error:

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

    When I read forums about this problem, everybody talk about libqsqlmysql.dylib in Qt/plugins/sqldrivers, but in this folder I only have:

    • libssqlite.dylib
    • libqssqlobdc.dylib
    • libqsqlpslql.dylib

    I use QT4.8. (Qt libraries 4.8.6 for Mac (185 MB) (Info) and debug libraries (476 MB) both installed)

    Also in my computer I have installed Qt 5.0.2 and I have the same libraries in its respective plugin folder.

    What is my error?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JorgeVdB
      wrote on last edited by
      #2

      Thanks in advance

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JorgeVdB
        wrote on last edited by
        #3

        I was following this:

        http://www.qtcentre.org/threads/45296-QSqlDatabase-QMYSQL-driver-not-loaded

        But in the make instruction, show me an error about symbols not found for architecture x86_64

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JorgeVdB
          wrote on last edited by
          #4

          I've got libqsqlmysql_debug.dylib, but I haven't libqsqlmysql.dylib...

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

            Hi,

            What symbols doesn't it find ?

            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
            • J Offline
              J Offline
              JorgeVdB
              wrote on last edited by
              #6

              I followed this steps:

              • I changed the name of the library to libqsqlmysql.dylib.
              • I executed the instruction strip to the library.

              macdeployqt worked fine and the application works perfectly.

              Thank you so much.

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

                You should not change the plugin name, rather build it in release mode

                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