Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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


  • Lifetime Qt Champion

    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 ?



  • @SGaist
    Hi,

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

    Thanks


  • Lifetime Qt Champion

    What was the problem ?


Log in to reply