QtCreator Kit Trouble
-
I'm trying to make a dumb little "hello world" level Qt program using QtCreator. After Create Project, I reach Kit Selection where "No suitable kits found" blocks any further progress. In Preferences, Kits, the only option "Desktop" is in italics and has a yellow triangle. Hovering over the triangle tells me two warnings. One is about CMAKE_PREFIX_PATH. The other I forgot, and qtcreator is lost under other windows... I'll just fire up another... create a project... oh wait, this time it has a step for selecting a build system. That didn't happen the first time. And the kit selection has a kit, already checked, no warning.
Okay, I'm confused. My question was how to fix the kit warning, but that magically healed while I wrote this post.
So now my question is: what the heck was going on? Why no build system selection the first time, and no kits to choose with CMAKE_PREFIX_PATH trouble?
-
I'm trying to make a dumb little "hello world" level Qt program using QtCreator. After Create Project, I reach Kit Selection where "No suitable kits found" blocks any further progress. In Preferences, Kits, the only option "Desktop" is in italics and has a yellow triangle. Hovering over the triangle tells me two warnings. One is about CMAKE_PREFIX_PATH. The other I forgot, and qtcreator is lost under other windows... I'll just fire up another... create a project... oh wait, this time it has a step for selecting a build system. That didn't happen the first time. And the kit selection has a kit, already checked, no warning.
Okay, I'm confused. My question was how to fix the kit warning, but that magically healed while I wrote this post.
So now my question is: what the heck was going on? Why no build system selection the first time, and no kits to choose with CMAKE_PREFIX_PATH trouble?
@DarenW Update. I select different project types, "Qt Custom Designer Widget", "Qt Quick UI Prototype", "Qt Widget Application" etc and sometimes there's a build system step, sometimes not. If not, I may or may not find a valid kit.
I'm trying to follow a how-to tutorial that says to create a "Qt Quick UI Prototype" but that's one with no build system step and no valid kit to select.
-
Do you have CMake and Ninja from Qt SDK (or externally) installed?
-
@DarenW Update. I select different project types, "Qt Custom Designer Widget", "Qt Quick UI Prototype", "Qt Widget Application" etc and sometimes there's a build system step, sometimes not. If not, I may or may not find a valid kit.
I'm trying to follow a how-to tutorial that says to create a "Qt Quick UI Prototype" but that's one with no build system step and no valid kit to select.
@DarenW hi
Which version of Qt are you using?
Did you install Qt, the required kit, cmake and ninja from the official online installer?
Did you added cmake to your path environment variable ?
You can define CMAKE_PREFIX_PATH in qt as well -
I'm trying to make a dumb little "hello world" level Qt program using QtCreator. After Create Project, I reach Kit Selection where "No suitable kits found" blocks any further progress. In Preferences, Kits, the only option "Desktop" is in italics and has a yellow triangle. Hovering over the triangle tells me two warnings. One is about CMAKE_PREFIX_PATH. The other I forgot, and qtcreator is lost under other windows... I'll just fire up another... create a project... oh wait, this time it has a step for selecting a build system. That didn't happen the first time. And the kit selection has a kit, already checked, no warning.
Okay, I'm confused. My question was how to fix the kit warning, but that magically healed while I wrote this post.
So now my question is: what the heck was going on? Why no build system selection the first time, and no kits to choose with CMAKE_PREFIX_PATH trouble?