2014-07-17 57 views
1

注意:我看過this這個問題,但我不認爲問題是清楚的,解決方案不包括我遇到的問題。如何使用mingw從命令行構建boost 1.55?

我從sourceforge下載了boost 1.55,並將其解壓到C:\ My Programs \目錄。當我試圖運行bootstrap.bat文件(REF)我得到了錯誤:

C:\Users\pollexb\git_repositories\modular-boost>bootstrap.bat 
Building Boost.Build engine 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'"VCVARS32.BAT"' is not recognized as an internal or external command 
operable program or batch file. 
'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. 

有什麼問題&我該如何解決呢?

回答

1

Boost 1.55似乎有bootstrap.bat工作問題(REF)。最簡單的解決方案是下載&安裝Boost 1.54

0

2年後我回答了這個問題,因爲我在提升1.60時遇到同樣的問題。

看起來你沒有安裝Visual Studio。顯然,bootstrap.bat假定你已經有了默認的,否則你應該指明你想要使用的編譯器工具鏈。作爲一個例子,我不得不輸入「boostrap.bat mingw」。