問題描述
僅在 Windows 7 上安裝了 IDE.我想創建一個普通的 C++ 項目(非 QT 項目);但是我收到一個錯誤:找不到有效的套件.當我點擊 Options->Kits 時,我看到了 Desktop (default) 套件,它沒有顯示任何錯誤.
Installed just the IDE on Windows 7. I want to create a Plain C++ Project (Non-QT Project); however I get an error: No valid kits found. When I click on Options->Kits, I see the Desktop (default) kit, and it shows no errors.
我收到錯誤是因為我沒有安裝 Qt 庫嗎?如果是這樣,有什么辦法可以繞過下載/安裝,而只使用 IDE?
Am I getting the error because I didn't install a Qt library? If so, is there any way I can bypass downloading/installing that and just use the IDE?
推薦答案
發現問題.Qt Creator 希望您使用在其 Qt 庫之一下列出的編譯器.使用維護工具來安裝它.
Found the issue. Qt Creator wants you to use a compiler listed under one of their Qt libraries. Use the Maintenance Tool to install this.
這樣做:
轉到工具"->選項...".選擇構建和"向左跑.打開套件選項卡.您應該在列表中包含 Manual -> Desktop(默認)行.選擇它.現在在Qt版本的PATH(qt5)中選擇類似Qt 5.5.1的東西組合框,然后單擊應用按鈕.從現在開始你應該可以創建、構建和運行空的 Qt 項目.
Go to Tools -> Options.... Select Build & Run on left. Open Kits tab. You should have Manual -> Desktop (default) line in list. Choose it. Now select something like Qt 5.5.1 in PATH (qt5) in Qt version combobox and click Apply button. From now you should be able to create, build and run empty Qt project.
這篇關于QtCreator:找不到有效的套件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!