Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Error to Build the QMYSQL Plugin on macOS High Sierra

    General and Desktop
    4
    9
    801
    Loading More Posts
    • 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.
    • A
      Albert Huert last edited by

      Hi,
      I am following the procedure shown in the qt documentation, but when trying to build the QMysql plugin it shows me the following error, make: *** No rule to make target `sub-mysql '. Stop. I have a question about the address to use in MYSQL_PREFIX =. I leave the screenshot with the addresses you use. Thanks for the help.
      0_1549905638626_sqldrivers.png
      0_1549905664896_mysql_prefix.png 0_1549905679191_terminal2.png

      1 Reply Last reply Reply Quote 0
      • S
        Silderan last edited by

        Not sure at all, as I'm Windows user and the error I see is not the same.
        But, did you run configure script before trying to build the plugin?

        I'm in my own calvary trying to build this too xD

        A 2 Replies Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          /usr/local is likely incomplete. You have to provide that path where the MySQL files can be found.

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

          A 1 Reply Last reply Reply Quote 0
          • A
            Albert Huert @Silderan last edited by

            @Silderan said in Error to Build the QMYSQL Plugin on macOS High Sierra:

            configure script

            Hi, Which configure script ??

            1 Reply Last reply Reply Quote 0
            • A
              Albert Huert @SGaist last edited by

              @SGaist
              Hi, whats MySQL file? I'm not sure what files are, to know the path that needs to be added to MYSQL_PREFIX =, but I've already added the paths of the screenshop and it shows me the same error.
              0_1549933840812_lib.png

              0_1549933884580_header.png

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @Albert Huert last edited by

                @Albert-Huert You need to provide the path to MySQL (the one containing lib and include)

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

                1 Reply Last reply Reply Quote 0
                • S
                  Silderan last edited by

                  In this doc you'll find:
                  0_1549957585950_d341bca3-f475-4dc0-881c-09fe5f098741-image.png

                  So, to setup the building you deed to execute some like this:
                  configure -sql-mysql MYSQL_PREFIX=<path-where-mysql-libs-and-headers-are>
                  Configure script (in your case) is in $QTDIR/Users/eduardo/Qt/5.11.1/Src/

                  After that, you're able to run the qmake command as you did. But check where your MySQL headers and libs are. Maybe, as @SGaist and @jsulm said, /user/local/ it's not where this files are.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Albert Huert last edited by

                    I have searched the web and in books how to connect to my database and they say that I should add the file libmysql.so, but I have already downloaded all versions of MySQL and do not have that file only dynamic and static libraries. Does anyone know what version of MySQL that file has ??

                    1 Reply Last reply Reply Quote 0
                    • A
                      Albert Huert @Silderan last edited by

                      @Silderan Hi,
                      You can use microsoft SQL server in window, I did not have problems in windows using sql server is very simple.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post