Boost: MacOSX binaries for Boost

5.8k Views Asked by At

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

2

There are 2 best solutions below

5
On BEST ANSWER

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
0
On

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/