Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
None
-
-
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} )