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

Trouble creating QMYSQL plugin for macOs.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 213 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 19 Dec 2024, 23:58 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
    • H Offline
      H Offline
      hskoglund
      wrote on 20 Dec 2024, 00:38 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 20 Dec 2024, 05:39
      2
      • H hskoglund
        20 Dec 2024, 00:38

        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 20 Dec 2024, 05:39 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 20 Dec 2024, 05:41

        1/3

        19 Dec 2024, 23:58

        • Login

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