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

Building MySQL plugin via qmake and nmake (msvc19)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      OS: Windows 10 Pro x64, MSVC 2019, Qt 5.15.2
    • Platform/s:
      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

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            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