Building Boost on Windows

前端 未结 3 698
长情又很酷
长情又很酷 2021-02-15 14:22

I am trying to build boost libraries on Windows 7 x64 machine using mingw. When I try to run b2

b2 --build-dir=\"C:\\boost\\build\" --toolset=gcc --with-python
         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-15 14:54

    This thread is a year old, but I had the same problem and got it working, so in case anyone else needs a solution, here's mine.

    bjam was looking for a file called "boostcpp.jam" which didn't exist in the production version of boost. Luckily, you can find it on github.

    https://github.com/iNiKe/boost/blob/master/boostcpp.jam

    Download that file (or copy-paste it from your browser to a new file) and save it as "boostcpp.jam" in your boost directory (or maybe it's the location where you run bjam from...they happened to be the same directory in my situation) and run the command again. Hopefully it'll work for you too.

提交回复
热议问题