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

Building MySQL plugin with MinGW



    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.6.2, 4.6.3, 4.7.0, 4.7.1
    • Fix Version/s: 5.2.1
    • Labels:
    • Environment:

      Windows XP and Windows 7

    • Commits:


      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.


        1. Qt Build MySQL.bat
          0.8 kB
        2. Qt Environment.bat
          0.5 kB

          Issue Links

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



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



                  Gerrit Reviews

                  There are no open Gerrit changes