[英]Building boost under msys, can't find mingw.jam
I need to build boost to use the regex library. 我需要构建boost才能使用正则表达式库。 I was able to creat bjam using bootstrap.sh like so:
我能够使用bootstrap.sh创建bjam,如下所示:
./bootstrap.sh --with-toolset=mingw
Note - if I leave out the --with-toolset=mingw argument compilation fails - bootstrap can't find wait.h, resource.h, ar.h. 注意 - 如果我省略了--with-toolset = mingw参数编译失败 - bootstrap找不到wait.h,resource.h,ar.h。 With the mingw toolset argument, bjam is able to compile.
使用mingw工具集参数,bjam能够编译。 Then I run bjam and get:
然后我运行bjam并得到:
./bjam.exe mingw.jam: No such file or directory e:/libraries/boost_1_45_0/tools/build/v2/build\toolset.jam:38: in toolset.using rule mingw.init unknown in module toolset. e:/libraries/boost_1_45_0/tools/build/v2/build\project.jam:881: in using project-config.jam:12: in modules.load e:/libraries/boost_1_45_0/tools/build/v2\build-system.jam:257: in load-config e:/libraries/boost_1_45_0/tools/build/v2\build-system.jam:423: in load-configuration-files e:/libraries/boost_1_45_0/tools/build/v2\build-system.jam:554: in load e:\libraries\boost_1_45_0\tools\build\v2/kernel\modules.jam:283: in import e:\libraries\boost_1_45_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build e:\libraries\boost_1_45_0\boost-build.jam:17: in module scope
I tried several variations of parameters and get the same error: 我尝试了几种参数变量并得到了同样的错误:
./bjam.exe --build-dir=e:/libraries/boost_1_45_0/ --toolset=mingw ./bjam.exe --build-dir=e:/libraries/boost_1_45_0/ --toolset=gcc
Not sure how to get bjam to build. 不知道如何让bjam构建。 Any suggestions?
有什么建议?
Once you have built bjam with ./bootstrap.sh --with-toolset=mingw
一旦用
./bootstrap.sh --with-toolset=mingw
构建了bjam ./bootstrap.sh --with-toolset=mingw
Edit the file project-config.jam and replace 'mingw' by 'gcc' 编辑文件project-config.jam并将'mingw'替换为'gcc'
Then launch bjam.exe and it should work 然后启动bjam.exe,它应该工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.