yet another CMake project configuration failed
-
I'm using Win 10 and have recently installed QtCreator and QtDesign. When I try to create a Qt console project using the wizard it gives me some error messages. Please have a look at the screenshots to figure out what may be the root cause.
The configuration text file is taken from the Qt > Build with CMake > Getting started with CMake
The original configuration text from the Qt wizard was:
cmake_minimum_required(VERSION 3.14) project(ConsoleCMake LANGUAGES CXX) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core) add_executable(ConsoleCMake main.cpp ) target_link_libraries(ConsoleCMake Qt${QT_VERSION_MAJOR}::Core) install(TARGETS ConsoleCMake LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
but the errors were the same.
I've also included in my PATH system variable the link to the cmake directory: Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\lib\cmake
Creating a Non-QtProject works fine, also viewing a QML project and run it.
Any ideas ?
-
I've also tried to contact Qt support, but here is the message I've received:
"Hi
Thank you for contacting Qt Account Support.
Unfortunately you need to have an active commercial Qt license to get technical support."
so, is there no way someone could help somebody in this QT world ?
It's been more than one week since I post my issue. -
It looks like Qt Creator picks up some Qt from Qt Design Studio (the Qt 6.4.1 (qt6_design_stdudio_reduced_version). Don't use this for your project. Instead, activate an auto-detected kit, e.g. the "Qt 6.5.0 MinGW 64-bit" kit one.
See also https://doc.qt.io/qtcreator/creator-configuring-projects.html on how to activate different kits.
-
@cibo005 said in yet another CMake project configuration failed:
@kkoehne Thank you for your replay. Please have a look at what I've installed. Even though I have installed MinGW I cannot see it under the kits.
That's indeed a bit weird.
Do you use the Qt Creator that's shipped with the Qt SDK (e.g. in D:\Qt\Tools\QtCreator? If that's the case, maybe try to launch with clean settings:
"D:\Qt\Tools\QtCreator\bin\qtcreator.exe" -tcs
Does it show the MinGW kit then?
You can of course configure a MinGW kit manually, too. Just make sure that the Qt version matches the configured toolchain.
-
@kkoehne Yes, I've just fallowed the "click path", download from website and play a little bit with it. I feel it might be from DevOps side, not sure, since, some packages are missing, as I've got another error message at installation on another thread just to signal that.
After your suggestion, something change, but still I cannot see it. -
@cibo005 said in yet another CMake project configuration failed:
I've got another error message at installation on another thread just to signal that.
Alright, this explains why the installation is somewhat borked :/ If you want, you should be able to debug it a bit by looking into InstallationLog.txt . Look in particular for calls to 'sdktool' - this is the command line tool that the installer uses to tell Qt Creator about installed Qt versions, configures Kits ...
Anyhow, if you just want to get going (and not reinstall anew), I suggest you to just reinstall from scratch.
-