2012-04-15 60 views
2

我想使用QtCreator提升。我正在使用Windows 7並安裝了與mingw一起的QtSDK。當我執行bootstrap.bat我收到以下錯誤從QtSDK構建提升與明確

C:\boost\boost_1_49_0>bootstrap 
Building Boost.Build engine 
'cl' is not recognized as an internal or external command, 
operable program or batch file. 

Failed to build Boost.Build engine. 
Please consult bootstrap.log for furter diagnostics. 

You can try to obtain a prebuilt binary from 

    http://sf.net/project/showfiles.php?group_id=7586&package_id=72941 

Also, you can file an issue at http://svn.boost.org 
Please attach bootstrap.log in that case. 

的BOOTSTRAP.LOG包含以下

### 
### Using 'msvc' toolset. 
### 

C:\boost\boost_1_49_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap 

C:\boost\boost_1_49_0\tools\build\v2\engine>md bootstrap 

C:\boost\boost_1_49_0\tools\build\v2\engine>cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0 command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.cmodules/sequence.c modules/order.c 

我的第一個猜想是,升壓試圖建立與MSVC不是MinGW的,但我沒有想法如何改變這種行爲。一些幫助將不勝感激。

回答

5

當我發現這個question後,我嘗試了bootstrap.bat gcc,導致錯誤,因爲沒有找到gcc。對path環境變量的簡短介紹顯示缺少QtSDK\mingw\bin的路徑,因爲QtSDK沒有添加它。

的解決方案是簡單地

path = %PATH%;C:\QtSDK\mingw\bin 
bootstrap.bat gcc 
.\b2 --toolset=gcc