"Le kit doit définir un outil CMake pour analyser ce projet."
-
wrote on 18 Nov 2024, 20:52 last edited by
Hi, I'm very new to Qt creator and I'm trying to create a new projet using Cmake but it seems Qt doesn't detect that I've installed Cmake on my computer. I have a MacBook btw. This error message pops up every time i create a new project and i'm unable to execute the main function "Hello world". I've already tried deinstalling and reinstalling Qt. I think I'm supposed go into tools -> kits -> Cmake but this section doesn't even exist for me.
I'm using Qt 6 and I've installed Cmake version 3.31.0.
I'm sorry everything is in french :(
-
Hi and welcome to devnet,
Which version of Qt Creator is that ?
What about the cmake settings that are at the bottom of the Preferences dialog you are showing ? -
wrote on 18 Nov 2024, 21:36 last edited by
Try Qt Creator 15.
With Qt Creator 14 there is an issue with CMake when detecting the capabilities. Something goes wrong and Qt Creator thinks that the CMake tool is broken, and the kit needs to have a valid kit.
You can manually register a CMake version, and then in the Kit point to the new registered CMake.
-
wrote on 19 Nov 2024, 07:34 last edited by
Thanks I didn't really understand what i was doing but somehow it works now and I can execute my projects :)
-
wrote on 19 Nov 2024, 07:44 last edited by
Restarting Qt Creator could also help. Qt Creator 15 will work better in this regard.
3/5