2012-11-28 79 views
4

Possible Duplicate:
VC++ compiler for Qt CreatorQt 5 beta2,Qt Creator 2.6,MSVC錯誤:Qt Creator需要一個編譯器來建立。在套件選項中配置編譯器

我是新手。我試圖編譯下面的代碼中使用Qt 5測試版附帶的Windows Qt Creator的2.6:

#include <QCoreApplication> 
#include <QDebug> 
int main(int argc, char *argv[]) 
{ 
    QCoreApplication a(argc, argv); 
    qDebug() << "hello Qt5"; 
    return a.exec(); 
} 

我收到以下錯誤:

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options. 
File not found: 

Qt Creator的>工具>選項>構建和運行>套裝如下: 名稱:
自動檢測:
桌面的Qt 5.0.0β2 MSVC2010 32位(SDK)(默認)
手冊:(無)
重要THI納克這裏是沒有選擇的

當我點擊編譯「管理」按鈕,它帶我到「編譯器」選項卡:
自動檢測:
的Microsoft Windows SDK的Windows 7(7.1.1700.0。 30514)(86)
的Microsoft Windows SDK的Windows 7(7.1.1700.0.30514)(AMD64)
的Microsoft Windows SDK的Windows 7(7.1.1700.0.30514)(IA64)
的Microsoft Windows SDK的Windows 7( 7.1.1700.0.30514)()
....

微軟的Visual C++編譯器10.0(86)
微軟的Visual C++編譯器10.0(86)
微軟的Visual C++編譯器10.0(AMD64)
...

的Qt版本標籤如下:
自動檢測的:Qt 5.0.0β2 MSVC2010 32位(SDK)

我使用: 操作系統:Windows 7
首先我想 「的Microsoft Windows SDK的Windows 7和.NET Framework 4」,並沒有編譯代碼。然後我安裝了VS2010,也沒有編譯。
任何機構可以幫助我?

我想發佈我的qt creator 2.6 Build和Run選項的圖像,但Stack Overflow不允許我這樣做,因爲我是它的新成員。

在此先感謝

回答

0

轉到「Qt的版本」選項卡,選擇助手行中的詳細信息按鈕,然後選擇你要使用的編譯器(它必須與用於編譯Qt的編譯器兼容庫)。