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

Building MySQL plugin with MinGW

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.1
    • 4.6.2, 4.6.3, 4.7.0, 4.7.1
    • None
    • Windows XP and Windows 7

    • c071b165a35e56c1f070813212ef8ff899732da5

    Description

      Previously I had to use reimp and dlltool like it is described in QTBUG-9250. However, with recent versions of Qt this is no longer required. Today I am building the MySQL plugin using the two attached batch-files. The complete process takes less than a minute.

      I don't know what you have done to remove the need for reimp and dlltool but I first discovered that they were no longer needed when using Qt SDK 2010.02.01. Since then I have rebuild the plugin without reimp and dlltool with later Qt versions and on a brand new PC (without a separate MinGW installation).

      To my astonishment I see that you have now included (in the Qt documentation) a description on how to build the MySQL plugin with MinGW using reimp and dlltool. Why? If this is a mistake please update the Qt documentation.

      A second comment is that your description is rebuilding the complete Qt library (using configure and mingw32-make in the Qt root directory). To my knowledge that is a vaste of time. The only thing you need to build is the plugin and that can be done using qmake and mingw32-make in the "%QTDIR%\src\plugins\sqldrivers\mysql" directory. If reimp and dlltool is still required in some cases please update the Qt documentation to include the easiest solution.

      Attachments

        1. Qt Build MySQL.bat
          0.8 kB
          Stian Andre Olsen
        2. Qt Environment.bat
          0.5 kB
          Stian Andre Olsen

        Issue Links

          For Gerrit Dashboard: QTBUG-17268
          # Subject Branch Project Status CR V

          Activity

            People

              kkohne Kai Köhne
              stian Stian Andre Olsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes