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

5.8 configuration cannot detect MySQL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.8.0
    • Build System
    • None
    • windows 7 x64, ubuntu 16.04 x64, gcc 5.3 x64

      I am not able to build Qt 5.8 with MySQL support using the same libs, compiler and configuration options that work fine for 5.7 and 5.71:

      -L E:\msys64\mingw64\lib -qt-sql-psql -qt-sql-mysql -l mysqlclient -I E:\msys64\mingw64\include\mariadb
      

      While this works for previous versions of Qt, for 5.8 I get:

      ERROR: Invalid value given for boolean command line option 'sql-psql'.
      ERROR: Invalid value given for boolean command line option 'sql-mysql'.
      ERROR: Unknown command line option '-l'.
      Qmake failed, return code 3
      

      The documentation for Qt 5.8 still says to use -qt-sql-driver or -plugin-sql-driver or -no-sql-driver format, however that no longer appears to work, so I guess the documentation needs updating too.

      The sql-driver format appears to work, but in this case, how do we specify whether we want it plug-in or built-in?

      The -l option is also removed, so I can't pass a specific library to the configuration.

      So what I try to do is build with the following options instead:

      -L E:\msys64\mingw64\lib -sql-psql -sql-mysql -I E:\msys64\mingw64\include\mariadb
      

      However, even though this configuration is able to detect psql, it fails for mysql:

      ERROR: Feature 'sql-mysql' was enabled, but the pre-condition 'libs.mysql' failed.
      

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

            buddenha Oswald Buddenhagen
            dgo dgo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes