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

Assume that you are on OS X, and you need headfiles for boost.

https://github.com/boostorg/boost.git --depth 1 ## <~ (Search 'boost' on github.com and clone)
cd boost/
git pull --unshallow
git reset --hard 436ad1d ## (Reset to special version, check from its release page on github.com)
git submodule update --init ## (Maybe build another branch will be betta)
./bootstrap.sh
./b2 ## (Maybe ./b2 install)
## (Maybe Ok)

headfiles will place to /usr/local/include/boost/

猜你喜欢

转载自www.cnblogs.com/faiz-lisp/p/12207122.html
今日推荐