Unsolved Build MySql drivers under QT 6.2.1
-
Following th instuctions in https://doc.qt.io/qt-6/sql-driver.html#qmysql I try to create the dll needed to connect to MySql. But I get an error message I don't understand. Does it mean: "CMake version is less then the Ninja version required by CMake" or "version of Ninja (1.10.2) is less then required by CMake (1.3)"
Can anybody help me to understand and find out what to do next?
D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\build-sqldrivers>ninja --version 1.10.2 D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\build-sqldrivers>qt-cmake -G Ninja D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=D:\Tools\QT\6.2.1\windows -DMySQL_INCLUDE_DIR="C:\Program Files (x86)\MySQL\MySQL Connector C++ 8.0\include" -DMySQL_LIBRARY="C:\Program Files (x86)\MySQL\MySQL Connector C++ 8.0\libmysql.lib" -D"CMAKE_MAKE_PROGRAM:PATH=D:\Tools\QT\Tools\CMake_64\bin\cmake.exe" -- The CXX compiler identification is GNU 8.1.0 -- The C compiler identification is GNU 8.1.0 -- The ASM compiler identification is GNU -- Found assembler: D:/Tools/QT/Tools/mingw810_64/bin/gcc.exe -- Check for working CXX compiler: D:/Tools/QT/Tools/mingw810_64/bin/c++.exe CMake Error: The detected version of Ninja (cmake version 3.21.1 CMake suite maintained and supported by Kitware (kitware.com/cmake).) is less than the version of Ninja required by CMake (1.3). CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:49 (try_compile): Failed to generate test project build system. Call Stack (most recent call first): CMakeLists.txt:7 (project) -- Configuring incomplete, errors occurred! See also "D:/Tools/QT/6.2.1/Src/qtbase/src/plugins/build-sqldrivers/CMakeFiles/CMakeOutput.log".