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. mysql driver on macos sequoia
Forum Updated to NodeBB v4.3 + New Features

mysql driver on macos sequoia

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 325 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.
  • L Offline
    L Offline
    lorenko
    wrote on 9 Mar 2025, 21:55 last edited by
    #1

    Hi, trying to build mysql driver with macos squoia on apple silicon:

    cd ~/Qt/6.8.2/Src/qtbase/src/plugins/sqldrivers

    /Users/xxxxxx/Qt/6.8.2/macos/bin/qt-cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/Users/xxxxxx/Qt/6.8.2/macos -DMySQL_INCLUDE_DIR="/opt/homebrew/Cellar/mysql-client/9.2.0/include/mysql" -DMySQL_LIBRARY="/opt/homebrew/Cellar/mysql-client/9.2.0/lib/libmysqlclient.a"

    cmake --build .

    but got this error:

    ld: warning: ignoring file '/opt/homebrew/Cellar/mysql-client/9.2.0/lib/libmysqlclient.24.dylib': found architecture 'arm64', required architecture 'x86_64'.

    Cannot find where x86_64 is required

    J 1 Reply Last reply 10 Mar 2025, 07:15
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 10 Mar 2025, 03:33 last edited by
      #2

      Just guessing but maybe you forgot the magic command, for more see here

      1 Reply Last reply
      1
      • L lorenko
        9 Mar 2025, 21:55

        Hi, trying to build mysql driver with macos squoia on apple silicon:

        cd ~/Qt/6.8.2/Src/qtbase/src/plugins/sqldrivers

        /Users/xxxxxx/Qt/6.8.2/macos/bin/qt-cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/Users/xxxxxx/Qt/6.8.2/macos -DMySQL_INCLUDE_DIR="/opt/homebrew/Cellar/mysql-client/9.2.0/include/mysql" -DMySQL_LIBRARY="/opt/homebrew/Cellar/mysql-client/9.2.0/lib/libmysqlclient.a"

        cmake --build .

        but got this error:

        ld: warning: ignoring file '/opt/homebrew/Cellar/mysql-client/9.2.0/lib/libmysqlclient.24.dylib': found architecture 'arm64', required architecture 'x86_64'.

        Cannot find where x86_64 is required

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 10 Mar 2025, 07:15 last edited by
        #3

        @lorenko said in mysql driver on macos sequoia:

        Cannot find where x86_64 is required

        Did you install x86_64 or ARM version of Qt?
        I guess you installed x86_64 Qt but are trying to use arm mysql lib.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lorenko
          wrote on 10 Mar 2025, 17:37 last edited by
          #4

          I used online installer never asked me arch type

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lorenko
            wrote on 10 Mar 2025, 18:43 last edited by lorenko 3 Oct 2025, 18:44
            #5

            You are right @jsulm solved temporary with brew install qt and using qt-cmake from /opt/homebrew/bin/qt-cmake

            thanks

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 10 Mar 2025, 18:56 last edited by
              #6

              Hi,

              What type of processor do you have in your Mac machine ?

              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
              • L Offline
                L Offline
                lorenko
                wrote on 10 Mar 2025, 20:28 last edited by
                #7

                Macmini with M4 (apple silicon)

                1 Reply Last reply
                0
                • L lorenko has marked this topic as solved 30 days ago

                2/7

                10 Mar 2025, 03:33

                topic:navigator.unread, 5
                • Login

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