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. Trouble creating QMYSQL plugin for macOs.
Qt 6.11 is out! See what's new in the release blog

Trouble creating QMYSQL plugin for macOs.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 555 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.
  • H Offline
    H Offline
    he_R0
    wrote on last edited by he_R0
    #1

    I am getting errors building the QMYSQL plugin for MacOS after following the documentation .

    Errors:
    ld: warning: ignoring file '/usr/local/mysql-9.1.0-macos14-arm64/lib/libmysqlclient.24.dylib': found architecture 'arm64', required architecture 'x86_64'
    Undefined symbols for architecture x86_64:
    ...

    I haven't been able to find the answer online and AI solutions haven't worked either. What am I missing?

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      If you have an ARM Mac then you should be building for "arm64" and not "x86_64".

      To persuade the linker that you're on an ARM Mac, try erasing the build directory and appending
      -DCMAKE_OSX_ARCHITECTURES="arm64"
      on the qt-cmake command line

      If you're still having problems, you can look for example here

      H 1 Reply Last reply
      2
      • hskoglundH hskoglund

        If you have an ARM Mac then you should be building for "arm64" and not "x86_64".

        To persuade the linker that you're on an ARM Mac, try erasing the build directory and appending
        -DCMAKE_OSX_ARCHITECTURES="arm64"
        on the qt-cmake command line

        If you're still having problems, you can look for example here

        H Offline
        H Offline
        he_R0
        wrote on last edited by he_R0
        #3

        @hskoglund -DCMAKE_OSX_ARCHITECTURES="arm64" did not work; the additional command in your post fixed the issue. Thank you.

        1 Reply Last reply
        0
        • H he_R0 has marked this topic as solved on

        • Login

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