Qt新建項目No valid kits found解決思路
第一次用Qt Creator創建Project時,進入Kit Selection窗口后,會提示No Valid kits found. Please add a kit in the options or via the maintenance tool of the SDK.錯誤。
解決思路如下:
需要設置Qt SDK,Device type等的路徑給Qt Creator。假設已裝Qt SDK,安裝方法在(這里)。解決方法:點擊藍色options鏈接,或自己打開“Tools->Options->Build & Run->Kits”進入設置:
At least fill in the device type, device (most likely desktop) as well as the tool chain and debugger. For qmake-based projects you will also need a qt version and mkspec (which can be empty if you are ok with the default one).
You might need to define Qt versions and tool chains first (other tabs on the same options page).
Creator needs this information to know how to parse your compile output and debug the results.
配置你自己安裝的Qt SDK的qmake路徑到Qt versions里面。配置成功的應該類似這樣: