Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success
Forum Update on Monday, May 27th 2025

QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmysql
69 Posts 7 Posters 12.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JonBJ JonB

    @cpplegend
    I don't know about any need to remove MinGW. But if you can install MSVC and get that working I think you will progress further.

    C Offline
    C Offline
    cpplegend
    wrote on last edited by
    #25

    @JonB ok thanks, is the latest version of msvc good?

    1 Reply Last reply
    0
    • C cpplegend

      @Christian-Ehrlicher so what should I do? remove the MinGW and install the MSVC?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #26

      @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

      so what should I do?

      Install and use Qt for MinGW...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      JonBJ 1 Reply Last reply
      0
      • jsulmJ jsulm

        @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

        so what should I do?

        Install and use Qt for MinGW...

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #27

        @jsulm said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

        Install and use Qt for MinGW...

        Before you advise this to the OP, are you sure about it? Have you read through the exchanges above? The OP is trying to build QMYSQL driver for Windows. They have C:\mysql-8.0.22-winx64\lib\libmysql.lib. My reading is that this is designed for MSVC, I believe the OP will have to take quite some other steps if they want to build with MinGW?

        jsulmJ 1 Reply Last reply
        0
        • JonBJ JonB

          @jsulm said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

          Install and use Qt for MinGW...

          Before you advise this to the OP, are you sure about it? Have you read through the exchanges above? The OP is trying to build QMYSQL driver for Windows. They have C:\mysql-8.0.22-winx64\lib\libmysql.lib. My reading is that this is designed for MSVC, I believe the OP will have to take quite some other steps if they want to build with MinGW?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #28

          @JonB According to official documentation MinGW should also work (https://doc.qt.io/qt-6/sql-driver.html). I guess the MySQL client library is a C library, not C++.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          C 1 Reply Last reply
          0
          • jsulmJ jsulm

            @JonB According to official documentation MinGW should also work (https://doc.qt.io/qt-6/sql-driver.html). I guess the MySQL client library is a C library, not C++.

            C Offline
            C Offline
            cpplegend
            wrote on last edited by
            #29

            @jsulm I installed the mingw C compiler, not the c++, and got this errors when I run "cmake --build .": [1/15] Building RC object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_resource.rc.obj
            FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_resource.rc.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe -O coff -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -I C:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -I C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -I C:/Qt/6.5.1/Src/build-sqldrivers/mysql -I C:/Qt/6.5.1/Src/build-sqldrivers/include -I "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -I C:/Qt/6.5.1/msvc2019_64/include/QtCore -I C:/Qt/6.5.1/msvc2019_64/include -I C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -I C:/Qt/6.5.1/msvc2019_64/include/QtSql C:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_resource.rc mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_resource.rc.obj
            gcc: error: Files/MySQL/MySQL: No such file or directory
            gcc: error: Connector: No such file or directory
            gcc: error: C: No such file or directory
            gcc: error: 6.1/include: No such file or directory
            C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.
            [2/15] Building CXX object odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj
            FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj -MF odbc\CMakeFiles\QODBCDriverPlugin.dir\QODBCDriverPlugin_autogen\mocs_compilation.cpp.obj.d -o odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj -c C:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/mocs_compilation.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [3/15] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj
            FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj -MF mysql\CMakeFiles\QMYSQLDriverPlugin.dir\main.cpp.obj.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql/main.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [4/15] Building C object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj
            FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\gcc.exe -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c11 -w -fno-exceptions -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\C_\Qt\6.5.1\Src\qtbase\src\3rdparty\sqlite\sqlite3.c.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj -c C:/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c
            gcc.exe: error: unrecognized debug output level 'uard:cf'
            gcc.exe: error: unrecognized command line option '-Zc:rvalueCast'
            gcc.exe: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            gcc.exe: error: unrecognized command line option '-Zc:strictStrings'
            gcc.exe: error: unrecognized command line option '-Zc:throwingNew'
            gcc.exe: error: unrecognized command line option '-Zc:referenceBinding'
            gcc.exe: error: unrecognized command line option '-Zc:ternary'
            gcc.exe: error: unrecognized command line option '-Zc:externConstexpr'
            gcc.exe: error: unrecognized command line option '-Zc:wchar_t'
            gcc.exe: error: unrecognized command line option '-bigobj'
            gcc.exe: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [5/15] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj
            FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj -MF mysql\CMakeFiles\QMYSQLDriverPlugin.dir\qsql_mysql.cpp.obj.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [6/15] Building CXX object odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj
            FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj -MF odbc\CMakeFiles\QODBCDriverPlugin.dir\main.cpp.obj.d -o odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc/main.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [7/15] Building RC object odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_resource.rc.obj
            FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_resource.rc.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe -O coff -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -I C:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -I C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -I C:/Qt/6.5.1/Src/build-sqldrivers/odbc -I C:/Qt/6.5.1/Src/build-sqldrivers/include -I C:/Qt/6.5.1/msvc2019_64/include/QtCore -I C:/Qt/6.5.1/msvc2019_64/include -I C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -I C:/Qt/6.5.1/msvc2019_64/include/QtSql C:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_resource.rc odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_resource.rc.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.
            [8/15] Building CXX object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj
            FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -w -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\QSQLiteDriverPlugin_autogen\mocs_compilation.cpp.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj -c C:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [9/15] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj
            FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj -MF mysql\CMakeFiles\QMYSQLDriverPlugin.dir\QMYSQLDriverPlugin_autogen\mocs_compilation.cpp.obj.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj -c C:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [10/15] Building CXX object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj
            FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -w -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\smain.cpp.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/smain.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [11/15] Building CXX object odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj
            FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj -MF odbc\CMakeFiles\QODBCDriverPlugin.dir\qsql_odbc.cpp.obj.d -o odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            [12/15] Building CXX object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj
            FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj
            C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -w -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\qsql_sqlite.cpp.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/qsql_sqlite.cpp
            C
            ~1.EXE: error: unrecognized debug output level 'uard:cf'
            C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
            C
            ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
            C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
            C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
            C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
            C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
            C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
            C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
            C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
            C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
            C__~1.EXE: error: unrecognized command line option '-bigobj'
            C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
            ninja: build stopped: subcommand failed.

            JonBJ 1 Reply Last reply
            0
            • C cpplegend

              @jsulm I installed the mingw C compiler, not the c++, and got this errors when I run "cmake --build .": [1/15] Building RC object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_resource.rc.obj
              FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_resource.rc.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe -O coff -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -I C:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -I C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -I C:/Qt/6.5.1/Src/build-sqldrivers/mysql -I C:/Qt/6.5.1/Src/build-sqldrivers/include -I "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -I C:/Qt/6.5.1/msvc2019_64/include/QtCore -I C:/Qt/6.5.1/msvc2019_64/include -I C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -I C:/Qt/6.5.1/msvc2019_64/include/QtSql C:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_resource.rc mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_resource.rc.obj
              gcc: error: Files/MySQL/MySQL: No such file or directory
              gcc: error: Connector: No such file or directory
              gcc: error: C: No such file or directory
              gcc: error: 6.1/include: No such file or directory
              C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.
              [2/15] Building CXX object odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj
              FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj -MF odbc\CMakeFiles\QODBCDriverPlugin.dir\QODBCDriverPlugin_autogen\mocs_compilation.cpp.obj.d -o odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_autogen/mocs_compilation.cpp.obj -c C:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/mocs_compilation.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [3/15] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj
              FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj -MF mysql\CMakeFiles\QMYSQLDriverPlugin.dir\main.cpp.obj.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/main.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql/main.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [4/15] Building C object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj
              FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\gcc.exe -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c11 -w -fno-exceptions -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\C_\Qt\6.5.1\Src\qtbase\src\3rdparty\sqlite\sqlite3.c.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/C_/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c.obj -c C:/Qt/6.5.1/Src/qtbase/src/3rdparty/sqlite/sqlite3.c
              gcc.exe: error: unrecognized debug output level 'uard:cf'
              gcc.exe: error: unrecognized command line option '-Zc:rvalueCast'
              gcc.exe: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              gcc.exe: error: unrecognized command line option '-Zc:strictStrings'
              gcc.exe: error: unrecognized command line option '-Zc:throwingNew'
              gcc.exe: error: unrecognized command line option '-Zc:referenceBinding'
              gcc.exe: error: unrecognized command line option '-Zc:ternary'
              gcc.exe: error: unrecognized command line option '-Zc:externConstexpr'
              gcc.exe: error: unrecognized command line option '-Zc:wchar_t'
              gcc.exe: error: unrecognized command line option '-bigobj'
              gcc.exe: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [5/15] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj
              FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj -MF mysql\CMakeFiles\QMYSQLDriverPlugin.dir\qsql_mysql.cpp.obj.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/qsql_mysql.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [6/15] Building CXX object odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj
              FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj -MF odbc\CMakeFiles\QODBCDriverPlugin.dir\main.cpp.obj.d -o odbc/CMakeFiles/QODBCDriverPlugin.dir/main.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc/main.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [7/15] Building RC object odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_resource.rc.obj
              FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_resource.rc.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe -O coff -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -I C:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -I C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -I C:/Qt/6.5.1/Src/build-sqldrivers/odbc -I C:/Qt/6.5.1/Src/build-sqldrivers/include -I C:/Qt/6.5.1/msvc2019_64/include/QtCore -I C:/Qt/6.5.1/msvc2019_64/include -I C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -I C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -I C:/Qt/6.5.1/msvc2019_64/include/QtSql C:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_resource.rc odbc/CMakeFiles/QODBCDriverPlugin.dir/QODBCDriverPlugin_resource.rc.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.
              [8/15] Building CXX object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj
              FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -w -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\QSQLiteDriverPlugin_autogen\mocs_compilation.cpp.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp.obj -c C:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/mocs_compilation.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [9/15] Building CXX object mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj
              FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/mysql -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem "C:/Program Files/MySQL/MySQL Connector C 6.1/include" -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj -MF mysql\CMakeFiles\QMYSQLDriverPlugin.dir\QMYSQLDriverPlugin_autogen\mocs_compilation.cpp.obj.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.obj -c C:/Qt/6.5.1/Src/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [10/15] Building CXX object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj
              FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -w -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\smain.cpp.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/smain.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/smain.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [11/15] Building CXX object odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj
              FAILED: odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DQODBCDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc/QODBCDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/odbc -IC:/Qt/6.5.1/Src/build-sqldrivers/include -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -Wall -Wextra -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj -MF odbc\CMakeFiles\QODBCDriverPlugin.dir\qsql_odbc.cpp.obj.d -o odbc/CMakeFiles/QODBCDriverPlugin.dir/qsql_odbc.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              [12/15] Building CXX object sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj
              FAILED: sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj
              C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE -DNDEBUG -DQSQLiteDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_RTREE -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_LOAD_EXTENSION -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite/QSQLiteDriverPlugin_autogen/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/sqlite -IC:/Qt/6.5.1/Src/build-sqldrivers/include -IC:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/../../../3rdparty/sqlite -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include -isystem C:/Qt/6.5.1/msvc2019_64/mkspecs/win32-msvc -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtCore/6.5.1/QtCore -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1 -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql/6.5.1/QtSql -isystem C:/Qt/6.5.1/msvc2019_64/include/QtSql -DNDEBUG -O2 -std=c++17 -w -fno-exceptions -Zc:cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw -MD -MT sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj -MF sqlite\CMakeFiles\QSQLiteDriverPlugin.dir\qsql_sqlite.cpp.obj.d -o sqlite/CMakeFiles/QSQLiteDriverPlugin.dir/qsql_sqlite.cpp.obj -c C:/Qt/6.5.1/Src/qtbase/src/plugins/sqldrivers/sqlite/qsql_sqlite.cpp
              C
              ~1.EXE: error: unrecognized debug output level 'uard:cf'
              C__~1.EXE: error: unrecognized command line option '-Zc:cplusplus'
              C
              ~1.EXE: error: unrecognized command line option '-permissive-'; did you mean '-fpermissive'?
              C__~1.EXE: error: unrecognized command line option '-Zc:rvalueCast'
              C__~1.EXE: error: unrecognized command line option '-Zc:inline'; did you mean '-Winline'?
              C__~1.EXE: error: unrecognized command line option '-Zc:strictStrings'
              C__~1.EXE: error: unrecognized command line option '-Zc:throwingNew'
              C__~1.EXE: error: unrecognized command line option '-Zc:referenceBinding'
              C__~1.EXE: error: unrecognized command line option '-Zc:ternary'
              C__~1.EXE: error: unrecognized command line option '-Zc:externConstexpr'
              C__~1.EXE: error: unrecognized command line option '-Zc:wchar_t'
              C__~1.EXE: error: unrecognized command line option '-bigobj'
              C__~1.EXE: error: unrecognized command line option '-Gw'; did you mean '-w'?
              ninja: build stopped: subcommand failed.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #30

              @cpplegend
              You are reposting and repeating over & over the same voluminous output. We know you have this. And I have told you that this is because you are using a MinGW/gcc compiler with arguments passed for an MSVC compiler. You also said you would change to MSVC compiler to resolve this, but you have not, so you get the same errors. Doesn't matter how many times you post the same stuff, the answer will be the same.....

              C 1 Reply Last reply
              0
              • JonBJ JonB

                @cpplegend
                You are reposting and repeating over & over the same voluminous output. We know you have this. And I have told you that this is because you are using a MinGW/gcc compiler with arguments passed for an MSVC compiler. You also said you would change to MSVC compiler to resolve this, but you have not, so you get the same errors. Doesn't matter how many times you post the same stuff, the answer will be the same.....

                C Offline
                C Offline
                cpplegend
                wrote on last edited by
                #31

                @JonB the problem is that I have the same output, but I have switched to a msvc compiler, I followed this link: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads which has been published by qt in the official documentation I said I was following, I installed the latest version but it does not work

                JonBJ 1 Reply Last reply
                0
                • C cpplegend

                  @JonB the problem is that I have the same output, but I have switched to a msvc compiler, I followed this link: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads which has been published by qt in the official documentation I said I was following, I installed the latest version but it does not work

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by JonB
                  #32

                  @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                  but I have switched to a msvc compiler,

                  C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.

                  C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE

                  gcc.exe: error:

                  As you can clearly see you are using MinGW compiler. Hence the behaviour/output is the same as it was before you say you have "switched to a msvc compiler". Quoting "published by qt in the official documentation" does not alter the fact that you can look at the output and see for yourself.

                  FWIW I don't think the MinGW you are using is even the one supplied with Qt. It's in a Program Files\CodeBlocks directory, I would think that means it's some MinGW you have previously installed yourself.

                  I don't know how any of this works, having not done it myself and I don't use Windows for Qt, but I assume that somewhere it asks you or you have to tell it which compiler toolchain you want it to use. Just because you download something does not automatically mean it will be used.

                  C 2 Replies Last reply
                  0
                  • JonBJ JonB

                    @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                    but I have switched to a msvc compiler,

                    C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.

                    C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE

                    gcc.exe: error:

                    As you can clearly see you are using MinGW compiler. Hence the behaviour/output is the same as it was before you say you have "switched to a msvc compiler". Quoting "published by qt in the official documentation" does not alter the fact that you can look at the output and see for yourself.

                    FWIW I don't think the MinGW you are using is even the one supplied with Qt. It's in a Program Files\CodeBlocks directory, I would think that means it's some MinGW you have previously installed yourself.

                    I don't know how any of this works, having not done it myself and I don't use Windows for Qt, but I assume that somewhere it asks you or you have to tell it which compiler toolchain you want it to use. Just because you download something does not automatically mean it will be used.

                    C Offline
                    C Offline
                    cpplegend
                    wrote on last edited by cpplegend
                    #33

                    @JonB man.... I just found out I was including the incorrect path in the PATH environment variable...

                    Then I included this path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64

                    it is the msvc compiler, I'm sure it is it works, but it still doesn't work

                    by the way, qt didn't say anything about the mingw compiler on the documentation so installed one by myself, the msvc compiler instead was a redirect to the microsoft page, I installed the packages of visual studio and there is even the msvc compiler

                    1 Reply Last reply
                    0
                    • JonBJ JonB

                      @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                      but I have switched to a msvc compiler,

                      C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.

                      C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE

                      gcc.exe: error:

                      As you can clearly see you are using MinGW compiler. Hence the behaviour/output is the same as it was before you say you have "switched to a msvc compiler". Quoting "published by qt in the official documentation" does not alter the fact that you can look at the output and see for yourself.

                      FWIW I don't think the MinGW you are using is even the one supplied with Qt. It's in a Program Files\CodeBlocks directory, I would think that means it's some MinGW you have previously installed yourself.

                      I don't know how any of this works, having not done it myself and I don't use Windows for Qt, but I assume that somewhere it asks you or you have to tell it which compiler toolchain you want it to use. Just because you download something does not automatically mean it will be used.

                      C Offline
                      C Offline
                      cpplegend
                      wrote on last edited by
                      #34

                      @JonB man I am gonna blow up... can you redirect me to a page where I can install mingw correctly..

                      jsulmJ JonBJ 2 Replies Last reply
                      0
                      • C cpplegend

                        @JonB man I am gonna blow up... can you redirect me to a page where I can install mingw correctly..

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #35

                        @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                        can you redirect me to a page where I can install mingw correctly

                        Qt Online/Offline installer installs MinGW...

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1
                        • C cpplegend

                          @JonB man I am gonna blow up... can you redirect me to a page where I can install mingw correctly..

                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on last edited by
                          #36

                          @cpplegend
                          I don't use Windows, MinGW or MSVC. But I thought Qt sources come with a MinGW for Windows somewhere inside.

                          SGaistS 1 Reply Last reply
                          0
                          • JonBJ JonB

                            @cpplegend
                            I don't use Windows, MinGW or MSVC. But I thought Qt sources come with a MinGW for Windows somewhere inside.

                            SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #37

                            @JonB said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                            @cpplegend
                            I don't use Windows, MinGW or MSVC. But I thought Qt sources come with a MinGW for Windows somewhere inside.

                            Not the sources but the Online Installer offers the download of the MinGW version used to build Qt.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            C 1 Reply Last reply
                            1
                            • SGaistS SGaist

                              @JonB said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                              @cpplegend
                              I don't use Windows, MinGW or MSVC. But I thought Qt sources come with a MinGW for Windows somewhere inside.

                              Not the sources but the Online Installer offers the download of the MinGW version used to build Qt.

                              C Offline
                              C Offline
                              cpplegend
                              wrote on last edited by
                              #38

                              @SGaist I successfully compiled the driver, now what should I do? it doesnt't work, I've done cmake --build . and cmake --install . every thing went good, I have all the needed files, but it doesn't work

                              SGaistS 1 Reply Last reply
                              0
                              • C cpplegend

                                @SGaist I successfully compiled the driver, now what should I do? it doesnt't work, I've done cmake --build . and cmake --install . every thing went good, I have all the needed files, but it doesn't work

                                SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #39

                                Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 and check the output of your application.

                                As an educated guess, I think the MySQL dlls are not found when loading the plugin.

                                Go to the Run part of the project panel and add the path to these .dll files to the PATH environment variable there.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                C 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 and check the output of your application.

                                  As an educated guess, I think the MySQL dlls are not found when loading the plugin.

                                  Go to the Run part of the project panel and add the path to these .dll files to the PATH environment variable there.

                                  C Offline
                                  C Offline
                                  cpplegend
                                  wrote on last edited by
                                  #40

                                  @SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )

                                  jsulmJ SGaistS JonBJ 3 Replies Last reply
                                  0
                                  • C cpplegend

                                    @SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #41

                                    @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                                    what should I do?

                                    As I wrote in your other thread run your application after setting QT_DEBUG_PLUGINS and check its output

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    C 1 Reply Last reply
                                    0
                                    • C cpplegend

                                      @SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )

                                      SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #42

                                      @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                                      @SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )

                                      The license for Qt Creator ? The tool is free.

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      C 1 Reply Last reply
                                      1
                                      • C cpplegend

                                        @SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )

                                        JonBJ Offline
                                        JonBJ Offline
                                        JonB
                                        wrote on last edited by
                                        #43

                                        @cpplegend
                                        Since you are asking these questions and getting answers in thread https://forum.qt.io/topic/110176/build-qmysql-driver-under-windows-10-a-sample-solution-for-qsqldatabase-qmysql-driver-not-loaded, it would be really productive if you stuck to either that thread or this one. Asking the same question in different threads makes responders waste time in two places and leads to confusion. Thanks.

                                        1 Reply Last reply
                                        1
                                        • SGaistS SGaist

                                          @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                                          @SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )

                                          The license for Qt Creator ? The tool is free.

                                          C Offline
                                          C Offline
                                          cpplegend
                                          wrote on last edited by
                                          #44

                                          @SGaist huh? when I tried to use qt creator after 10 days from the installation it said that I couldnt use it because I need to buy the licence

                                          SGaistS 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved