How to do when I need boost headfiles (on macOS) ?

Assume that you are on macOS, and you need headfiles of boost.


  • (Search 'boost' on github.com or gitee.com, and clone)
    git clone https://gitee.com/mirrors/boost.git --depth=1

  • git pull for historical versions

cd boost/
git pull --unshallow
  • Reset to special commit version, check from its release page on github.com, such as commit 436ad1d
    git reset --hard 436ad1d

  • Update sub-modules
    git submodule update --init

  • Main process

./bootstrap.sh
./b2 ## (Maybe ./b2 install)
  • Headfiles will be placed to /usr/local/include/boost/
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。