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. QMYSQL, Qt5Sql_QMYSQLDriverPlugin.cmake not a valid Mach-O binary
QtWS25 Last Chance

QMYSQL, Qt5Sql_QMYSQLDriverPlugin.cmake not a valid Mach-O binary

Scheduled Pinned Locked Moved General and Desktop
qmakesqldrivers
4 Posts 2 Posters 1.7k Views
  • 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.
  • N Offline
    N Offline
    nikki16
    wrote on last edited by
    #1

    Hi,

    I've been trying to establish a connection to a remote database for some time now using various methods I have found in numerous threads but I'm still having no luck. When connecting using QMYSQL I get the following error when using QT_DEBUG_PLUGINS:
    QMachOParser: 'path/Qt5Sql_QMYSQLDriverPlugin.cmake' is not a valid Mach-O binary (invalid magic number)
    When using a working dsn with QODBC my program unexpectedly finishes.
    All the drivers are available in my sqldrivers directory.

    I would be very grateful if someone had any answers - I'm at my wits end!

    Thanks

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

      Hi and welcome to devnet,

      The first question would be: why does it try to load a cmake file in place of the dylib file of the plugin ?
      What version of Qt are you using ?

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

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        The first question would be: why does it try to load a cmake file in place of the dylib file of the plugin ?
        What version of Qt are you using ?

        N Offline
        N Offline
        nikki16
        wrote on last edited by
        #3

        @SGaist
        Hi,

        I was using version 5.4. I've got it sorted now though.

        Thanks

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

          What was the problem ?

          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