Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89611

Building MySQL plugin via qmake and nmake (msvc19)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.15.2
    • None
    • OS: Windows 10 Pro x64, MSVC 2019, Qt 5.15.2
    • Windows

    Description

      Hey everybody,

      I need to reinvite https://bugreports.qt.io/browse/QTBUG-63796

      Because the documentation does not work as expected

      https://doc.qt.io/qt-5/sql-driver.html#qmysql

      Especially if you add source via Qt Maintenance Tool and did not compile the whole git from scratch.

      I also needed to mask QMAKE_USE += mysql in the mysql.pro file

      and generate the make files with:

      qmake INCLUDEPATH+=C:\pathto\mysql\include LIBS+=C:\pathto\mysql\lib\libmariadb.lib mysql.pro

      after that nmake and nmake install works nicely.

      Using MYSQL_INCDIR and MYSQL_LIBDIR like shown in the documentation does not work if you only try to add the mysql plugin afterwards.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            engys Engys Plitchwood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes