Trying to build Boost: I cannot get bjam

前端 未结 2 1573
栀梦
栀梦 2021-02-14 08:39

I would like to build boost using two different compilers, MinGW and Visual C++ 2010 Express, using bjam:

bjam toolset=gcc,msvc variant=release link=static,share         


        
相关标签:
2条回答
  • 2021-02-14 08:48

    There is a bootstrap.bat in your boost directory. Run it.

    It will build bjam automatically (probably using visual c++).

    0 讨论(0)
  • 2021-02-14 08:52

    The directory structure in boost has changed in recent version, I think.

    The sources for bjam are in tools/build/v2/engine. Run build.sh mingw from that directory using MinGW shell, and it should build bjam.exe and b2.exe and place them in tools/build/v2/engine/ntx86. Copy b2.exe to the boost root directory. You should then be able to build Visual c++ libraries with b2 toolset=msvc.

    Hope that helps.

    0 讨论(0)
提交回复
热议问题