我更新了标题以更好地反映我当前的问题。
======================== 原始帖子 ==============================
我下载了Boost 1.53.0,解压并在MinGW shell中cd到该文件夹。但我在尝试的第一步就失败了:
$ ./bootstrap.sh mingw
Building Boost.Build engine with toolset gcc...
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details
在 bootstrap.log 文件中,错误信息如下:
builtins.c:33:23: fatal error: sys/wait.h: No such file or directory
compilation terminated.
execunix.c:17:26: fatal error: sys/resource.h: No such file or directory
compilation terminated.
fileunix.c:98:17: fatal error: ar.h: No such file or directory
compilation terminated.
请帮忙!谢谢!
================== 原始内容结束,更新开始 =====================
更新:我在网上找到了这份详细的指南: http://vijay.axham.com/blog/478/building-boost-binaries-on-mingw 我按照指南进行操作,但在最后的构建步骤中卡住了。该步骤应该需要很长时间,但我收到了一个错误提示:
$ b2 --build-dir=$BOOST_BUILD_DIR --prefix=$BOOST_INSTALL_DIR toolset=gcc variant=release link=static threading=multi runtime-link=static install 2>&1 | tee $BOOST_BUILD_DIR/build.log
error: Unable to find file or target named
error: 'boost/tr1/tr1/bcc32'
error: referred from project at
error: '.'
但目录存在(应该存在,因为它只是从压缩文件中提取出来的)。
$ ls boost/tr1/tr1/bcc32/
array.h random.h regex.h tuple.h type_tra.h unordere.h
接近了,但仍需要帮助!谢谢!