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

FindMySQL.cmake finds STATIC MySQL library when DYNAMIC should be found

    XMLWordPrintable

Details

    • Windows
    • 0c7042defaf3a2a97aebc6f652b4d34229093a5a (qt/qtbase/dev) 9e287b50ee77d7a9a52483e86954d0eb2f5760df (qt/qtbase/6.0)

    Description

      Standard MySQL distribution's "lib" folder on Windows looks like this:

      mecab\
      plugin\
      libmysql.dll
      libmysql.lib
      mysqlclient.lib
      mysqlservices.lib
      

      meaning that both SHARED and STATIC libraries are present within same folder.

      It seems that FindMysql.cmake included with 6.0.0 always looks for "mysqlclient.lib" which is just wrong on Windows because it is static library. "libmysql.lib" should be used instead!

      Excerpt of Findmysql.cmake:

      find_library(MySQL_LIBRARIES
                   NAMES mysqlclient
                   HINTS ${PC_MySQL_LIBDIR}
      )

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            skunkos Martin Rotter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes