Trying to build Boost: I cannot get bjam

前端 未结 2 1574
栀梦
栀梦 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: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.

提交回复
热议问题