Build Boost on Mac with Xcode

前端 未结 7 517
长发绾君心
长发绾君心 2020-12-05 11:09

I\'ve recently got acquainted with Boost library and I\'d like to use it in my Xcode project. But sadly there is no HowTo or FAQ on how to do it :(

What\'s the seque

7条回答
  •  一个人的身影
    2020-12-05 11:46

    I found that to build Boost 1.41.1 on MacOS, you need to do the following:

    1. Download boost 1.46.1 from here: http://sourceforge.net/projects/boost/files/boost/1.46.1/
    2. Unpack the file
    3. Open terminal, cd to the install directory, and do the following:

    chmod u+x configure.sh

    cd tools/build/v2/engine/src

    chmod u+x build.sh

    Then go back to the install directory, and:

    ./configure.sh

    If that runs successfully, it will tell you to run:

    ./bjam

    That's it.. for whatever reason, I needed to set those permissions manually before it would work.

提交回复
热议问题