新版本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

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