問題描述
僅在 Windows 7 上安裝了 IDE.我想創(chuàng)建一個(gè)普通的 C++ 項(xiàng)目(非 QT 項(xiàng)目);但是我收到一個(gè)錯(cuò)誤:找不到有效的套件.當(dāng)我點(diǎn)擊 Options->Kits 時(shí),我看到了 Desktop (default) 套件,它沒有顯示任何錯(cuò)誤.
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.
我收到錯(cuò)誤是因?yàn)槲覜]有安裝 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?
推薦答案
發(fā)現(xiàn)問題.Qt Creator 希望您使用在其 Qt 庫之一下列出的編譯器.使用維護(hù)工具來安裝它.
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.
這樣做:
轉(zhuǎn)到工具"->選項(xiàng)...".選擇構(gòu)建和"向左跑.打開套件選項(xiàng)卡.您應(yīng)該在列表中包含 Manual -> Desktop(默認(rèn))行.選擇它.現(xiàn)在在Qt版本的PATH(qt5)中選擇類似Qt 5.5.1的東西組合框,然后單擊應(yīng)用按鈕.從現(xiàn)在開始你應(yīng)該可以創(chuàng)建、構(gòu)建和運(yùn)行空的 Qt 項(xiàng)目.
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.
這篇關(guān)于QtCreator:找不到有效的套件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!