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-Qt] Create plugin MYSQL for Qt on MAC
Forum Updated to NodeBB v4.3 + New Features

[MYSQL-Qt] Create plugin MYSQL for Qt on MAC

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 14 Posters 7.2k Views 4 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.
  • E emiliano23

    I am unable to run the following command:
    make sub-mysql

    Why is this?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #6

    @emiliano23 said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:

    Why is this?

    Please provide more information.
    What happens if you try to execute this command?

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

    E 1 Reply Last reply
    0
    • jsulmJ jsulm

      @emiliano23 said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:

      Why is this?

      Please provide more information.
      What happens if you try to execute this command?

      E Offline
      E Offline
      emiliano23
      wrote on last edited by
      #7

      @jsulm
      After running with success
      qmake -- MYSQL_PREFIX=/usr/local/mysql
      I execute the command
      make sub-mysql

      And the output is
      make: *** No rule to make target `sub-mysql'. Stop.

      1 Reply Last reply
      0
      • Quang PhuQ Offline
        Quang PhuQ Offline
        Quang Phu
        wrote on last edited by Quang Phu
        #8

        Hi @emiliano23,
        Did you install mysql on your Mac?
        If installed, please check correct install path and make sure you run these command in correct directory ($QTDIR/Src/qtbase/src/plugins/sqldrivers)

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #9

          Make sure to remove the old config.cache file and qmake actually is running the config checks: https://forum.qt.io/topic/106905/what-is-current-2019-recommended-process-complete-for-building-a-mysql-driver-for-use-with-qt-on-windows/5

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • O Offline
            O Offline
            overmatch
            wrote on last edited by
            #10

            i tried, and almost every step is absolutely like yours, but at last step, i still get "drivers not loaded"

            SGaistS M 2 Replies Last reply
            0
            • O overmatch

              i tried, and almost every step is absolutely like yours, but at last step, i still get "drivers not loaded"

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #11

              @overmatch A maybe silly question but did you call make install at the end ?

              What do you get if you start the application with the QT_DEBUG_PLUGINS environment variable set to 1 ?

              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
              • E Offline
                E Offline
                EdBatt
                wrote on last edited by
                #12

                @Quang-Phu said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:

                /usr/local/mysql/lib/

                Brilliant, I have been beating my head against the wall on this for a week or so before finding your post. Worked like a charm...thank you so much for taking the time to share.

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  Imon
                  wrote on last edited by Imon
                  #13

                  Could anyone tell me where/how to add the environment variable"DYLD_LIBRARY_PATH"??
                  I am using qt5.14.2 and I couldn’t figure out how to add it

                  SGaistS 1 Reply Last reply
                  0
                  • I Imon

                    Could anyone tell me where/how to add the environment variable"DYLD_LIBRARY_PATH"??
                    I am using qt5.14.2 and I couldn’t figure out how to add it

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #14

                    @Imon hi and welcome to devnet,

                    If using Qt Creator, go to the Run part of the Project panel.

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

                    I 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @Imon hi and welcome to devnet,

                      If using Qt Creator, go to the Run part of the Project panel.

                      I Offline
                      I Offline
                      Imon
                      wrote on last edited by
                      #15

                      @SGaist
                      Thank you very much. I found it, it was assigned to a different dir, and it works

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        Eternus
                        wrote on last edited by Eternus
                        #16

                        @Quang-Phu said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:

                        make sub-mysql

                        i stopped on. this he says me :
                        macbook@MacBook-Pro-uzivatela-Macbook sqldrivers % make sub-mysql
                        make: *** No rule to make target `sub-mysql'. Stop.
                        macbook@MacBook-Pro-uzivatela-Macbook sqldrivers %

                        me sqldrivers folder:
                        Screenshot 2020-08-27 at 11.45.18.png

                        SGaistS 1 Reply Last reply
                        0
                        • E Eternus

                          @Quang-Phu said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:

                          make sub-mysql

                          i stopped on. this he says me :
                          macbook@MacBook-Pro-uzivatela-Macbook sqldrivers % make sub-mysql
                          make: *** No rule to make target `sub-mysql'. Stop.
                          macbook@MacBook-Pro-uzivatela-Macbook sqldrivers %

                          me sqldrivers folder:
                          Screenshot 2020-08-27 at 11.45.18.png

                          SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #17

                          @Eternus you are already getting answered in your thread. Please don't pile up in other threads.

                          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
                          1
                          • H Offline
                            H Offline
                            Hang Zhang
                            wrote on last edited by
                            #18

                            Thanks a lot. I fixed my problem in 1hour due to this topic.

                            1 Reply Last reply
                            0
                            • O overmatch

                              i tried, and almost every step is absolutely like yours, but at last step, i still get "drivers not loaded"

                              M Offline
                              M Offline
                              MuGongZi
                              wrote on last edited by
                              #19

                              @overmatch have you solve this problem ,i have the same problem

                              1 Reply Last reply
                              0
                              • L Offline
                                L Offline
                                losimen
                                wrote on last edited by
                                #20
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  losimen
                                  wrote on last edited by
                                  #21

                                  Hey guys, who are strugling with same problem on Mac M1. Follow steps that are descripted here: https://forum.qt.io/topic/136231/mysql-plugin-on-m1-mac/11

                                  1 Reply Last reply
                                  0
                                  • supergS Offline
                                    supergS Offline
                                    superg
                                    wrote on last edited by
                                    #22
                                    This post is deleted!
                                    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