Boost: MacOSX binaries for Boost

时光总嘲笑我的痴心妄想 提交于 2019-12-10 16:25:01

问题


Are there any MacOSX universal binaries (at least i386/ppc for >=macosx10.3) for Boost?


回答1:


You can install Boost on Mac by using MacPorts.

Once MacPorts is installed you just have to issue the following command:

$ sudo port install boost+universal

You can also ask MacPorts to build binary packages for you by either issuing:

$ port pkg pstree

or

$ port dmg pstree

The pkg or dmg files will be placed in a subfolder of /opt/local/var/macports/build


EDIT: nowadays you can install it with brew

$ brew install boost

see also

$ brew info boost



回答2:


I recently developed an addon for openframeworks with basically pre-compiled boost libraries 1.57.0 for i386 and x86_64 which is on the following github repo:

https://github.com/danoli3/ofxOSXBoost/ (i386 precompiled on master)

Also compiled the x86_64 version for Universal 32bit/64bit for newer macs/osx. https://github.com/danoli3/ofxOSXBoost/tree/x86_64

You can also build the library yourself (which will automatically download it from source forge for the tagged version (1.57.0) and compile and setup like the other branches. https://github.com/danoli3/ofxOSXBoost/tree/build-yourself

See the readme for more help:

https://github.com/danoli3/ofxOSXBoost/



来源:https://stackoverflow.com/questions/1833653/boost-macosx-binaries-for-boost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!