Building boost under msys, can't find mingw.jam

白昼怎懂夜的黑 提交于 2019-12-09 08:47:34

问题


I need to build boost to use the regex library. I was able to creat bjam using bootstrap.sh like so:

./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 the mingw toolset argument, bjam is able to compile. Then I run bjam and get:

./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. Any suggestions?


回答1:


Once you have built bjam with ./bootstrap.sh --with-toolset=mingw

Edit the file project-config.jam and replace 'mingw' by 'gcc'

Then launch bjam.exe and it should work



来源:https://stackoverflow.com/questions/5012429/building-boost-under-msys-cant-find-mingw-jam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!