"No kits are enabled for this project" when setting Cmake as the build system
-
Hi everyone,
I'm kinda a newbie to Qt and I'm trying to work in a desktop application to manage somme communication between a PC and a PLC. I'm currently working with Qt Creator ver 5.12.12 on Windows 10 since I need to work with some libraries in 32 bits that wont work with the latest version.
I've been able to develop some apps using qmake. However, when I try to create a project from scratch setting CMake as the build system, it will show me a warning next to the CMakelists file as you see below:
When I try to set some kits to this project, the kits I installed are grayed out and I can't chose any:
This is the view from the Options window:
Both 32 and 64 ver have C and C++ compilers set. So I saw it could that I don't have a Qt version installed because maybe I forgot to check that option when installing Qt Creator, but that's not the case. As you can see bellow, I have both 32 and 64 versions installed:
So, what could be wrong? Thank you in advance for any help.
-
@DanielVLM If you scroll down in the Kit are the CMake parts (like "CMake Tool") defined?
-
@DanielVLM Well, you do not have CMake (at least QtCreator does not know where to find it), so it can't work. Install CMake then QtCreator should auto detect it, if not you can manually specify the path.
-
-
@jsulm Thank you, I didn't have CMake on this machine. I didn't know I had to install it manually but since I used an offline installer for the 5.12.12 version I guess it is not automatically done.
I installed CMake and Qt Creator automatically detected it and now everything works fine.
Thank you so much!
-