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

Building MySQL plugin via qmake and nmake (msvc19)

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes