Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build MySql drivers under QT 6.2.1
Qt 6.11 is out! See what's new in the release blog

Build MySql drivers under QT 6.2.1

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 675 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.
  • E Offline
    E Offline
    Executer
    wrote on last edited by
    #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".
    
    
    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