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. Problem with installing mysql to Mac os Sierra
Forum Update on Monday, May 27th 2025

Problem with installing mysql to Mac os Sierra

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 803 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.
  • Z Offline
    Z Offline
    Zunneh
    wrote on 19 Oct 2020, 17:46 last edited by Zunneh
    #1

    Hi All, so i'm planning to install mysql to my mac os sierra ,
    i find a tutorial in this forum and i tried to follow steps ( https://forum.qt.io/topic/106565/mysql-qt-create-plugin-mysql-for-qt-on-mac )
    i'm using QT 5.12.8
    i have downloaded mysql workbench community and already installed in /usr/local ( see scrennshot ) Capture d’écran 2020-10-19 à 18.32.46.png
    i opened the Terminal :
    First Step from the other topic:
    cd $QTDIR/Src/qtbase/src/plugins/sqldrivers
    For me it is :
    cd /Users/zunneh/Qt5.12.8/5.12.8/clang_64/plugins/sqldrivers

    Now second Step:
    qmake -- MYSQL_PREFIX=/usr/local/mysql

    For me it is :
    /Users/zunneh/Qt5.12.8/5.12.8/clang_64/bin/qmake --MYSQL_PREFIX=/usr/local/mysql

    Now 3rd Step :
    make sub-mysql

    For me , i didn't install Xcode, i only install CommandLineTools so :
    /Library/Developer/CommandLineTools/usr/bin/make sub-mysql

    and in this Step Error
    make: *** No rule to make target `sub-mysql'. Stop.

    Why i can't execute make ? in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers

    Can someone Help me please, i just followed the link ( who seems work) but it didnt work for me

    my english is average, please use simple words and try to be the most explicit, thank you

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Oct 2020, 17:56 last edited by
      #2

      Hi,

      What does the configuration log tel you after your called qmake ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Z 1 Reply Last reply 19 Oct 2020, 18:44
      0
      • B Offline
        B Offline
        Bonnie
        wrote on 19 Oct 2020, 18:06 last edited by Bonnie
        #3

        @Zunneh said in Problem with installing mysql to Mac os Sierra:

        in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers

        Because you didn't choose the "Sources" component in the installer when you were installing Qt. :)
        But you don't have to. You can download the source code package separately.

        S Z 2 Replies Last reply 19 Oct 2020, 18:09
        1
        • B Bonnie
          19 Oct 2020, 18:06

          @Zunneh said in Problem with installing mysql to Mac os Sierra:

          in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers

          Because you didn't choose the "Sources" component in the installer when you were installing Qt. :)
          But you don't have to. You can download the source code package separately.

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 19 Oct 2020, 18:09 last edited by
          #4

          @Bonnie good catch ! I misread that line.

          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
          • S SGaist
            19 Oct 2020, 17:56

            Hi,

            What does the configuration log tel you after your called qmake ?

            Z Offline
            Z Offline
            Zunneh
            wrote on 19 Oct 2020, 18:44 last edited by Zunneh
            #5

            @SGaist i think the problem came from qmake, Capture d’écran 2020-10-19 à 19.49.50.png

            my english is average, please use simple words and try to be the most explicit, thank you

            1 Reply Last reply
            0
            • B Bonnie
              19 Oct 2020, 18:06

              @Zunneh said in Problem with installing mysql to Mac os Sierra:

              in the other topic ( where the person uses mac too ) the sqldrivers folder was located in QTDIR/Src/qtbase/src/plugins/sqldrivers, why for me i don't have Src in my Qt5.12.8 ? i only have QTDIR/clang_64/plugins/sqldrivers

              Because you didn't choose the "Sources" component in the installer when you were installing Qt. :)
              But you don't have to. You can download the source code package separately.

              Z Offline
              Z Offline
              Zunneh
              wrote on 19 Oct 2020, 18:45 last edited by Zunneh
              #6

              @Bonnie How to install the source package ? should i reinstall Qt ? will it fix my problem ?

              my english is average, please use simple words and try to be the most explicit, thank you

              B 1 Reply Last reply 19 Oct 2020, 19:13
              0
              • Z Zunneh
                19 Oct 2020, 18:45

                @Bonnie How to install the source package ? should i reinstall Qt ? will it fix my problem ?

                B Offline
                B Offline
                Bonnie
                wrote on 19 Oct 2020, 19:13 last edited by
                #7

                @Zunneh
                As I said, you don't have to install it.
                You can download the qtbase-everywhere-src package only from http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules and extract to anywhere.
                This can only fix your "no qtbase/src/plugins/sqldrivers" problem. I'm not sure whether you would have other problems.

                Z 2 Replies Last reply 19 Oct 2020, 21:13
                1
                • B Bonnie
                  19 Oct 2020, 19:13

                  @Zunneh
                  As I said, you don't have to install it.
                  You can download the qtbase-everywhere-src package only from http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules and extract to anywhere.
                  This can only fix your "no qtbase/src/plugins/sqldrivers" problem. I'm not sure whether you would have other problems.

                  Z Offline
                  Z Offline
                  Zunneh
                  wrote on 19 Oct 2020, 21:13 last edited by
                  #8

                  @Bonnie i downloaded it and Create Src folder then paste my qtbase in this folder,
                  Capture d’écran 2020-10-19 à 22.12.00.png

                  my english is average, please use simple words and try to be the most explicit, thank you

                  1 Reply Last reply
                  0
                  • B Bonnie
                    19 Oct 2020, 19:13

                    @Zunneh
                    As I said, you don't have to install it.
                    You can download the qtbase-everywhere-src package only from http://download.qt.io/official_releases/qt/5.12/5.12.8/submodules and extract to anywhere.
                    This can only fix your "no qtbase/src/plugins/sqldrivers" problem. I'm not sure whether you would have other problems.

                    Z Offline
                    Z Offline
                    Zunneh
                    wrote on 20 Oct 2020, 16:31 last edited by
                    #9

                    @Bonnie big Thanks, the problem came from the source files that was not installed, now i installed them and i have done all the steps and everuthing work as except :)

                    my english is average, please use simple words and try to be the most explicit, thank you

                    1 Reply Last reply
                    0

                    6/9

                    19 Oct 2020, 18:45

                    • Login

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