新版本Boost 編譯問題

Building Boost.Build engine

系統找不到指定的路徑。

'.\build.bat' 不是內部或外部命令,也不是可運行的程序

或批處理文件。

 

Failed to build Boost.Build engine.

Please consult bootstrap.log for further diagnostics.



最近編譯新版本的Boost發現,按照網上教程無法編譯,提示以上錯誤

用mingw編譯則提示以下錯誤更加詳盡
 

./bootstrap.sh

./bootstrap.sh:行196: ./tools/build/src/engine/build.sh: No such file or directory

Building Boost.Build engine with toolset ...

Failed to build Boost.Build build engine

Consult 'bootstrap.log' for more details


到相應目錄下查看文件夾都是空的。找了一遍,最後發現解決辦法如下:https://github.com/boostorg/boost/wiki/Getting-Started

 

git clone --recursive https://github.com/boostorg/boost.git
cd boost
git checkout develop # or whatever branch you want to use
.\bootstrap.bat
.\b2 headers

相關文件需要通過git指令 git submodule update 獲取
最好辦法是通過git 獲取源碼,並submodule相關文件,進行編譯

作者:Tigerleap(虎躍工作室)
QQ:514540005
主頁:http://www.mediadrm360.com

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章