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

mysql driver on macos sequoia

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 269 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.
  • L Offline
    L Offline
    lorenko
    wrote on 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

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

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

      1 Reply Last reply
      0
      • L lorenko

        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

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on 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 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 last edited by lorenko
            #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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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 last edited by
                #7

                Macmini with M4 (apple silicon)

                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