Boost – Building libraries on OS X Lion 10.7 (Boost version 1.49.0)

By | June 8, 2010

So I didn’t want to use macports to install Boost, although feel free to if you don’t want to build the libraries yourself.

I was running into quite a few issues, and thought I would make a post as to the steps I had to take to successfully build the libraries.

Step 1: Make sure OS X Command Line Tools are installed

Step 2: Download, extract and change permissions

tar xfj boost_1_49_0.tar.bz2
cd boost_1_49_0
chmod +x
chmod +x tools/build/v2/engine/

Step 3: Build every library, or just one
All libraries:

./ –prefix=/usr/local/lib/

Just one:

./ –prefix=/usr/local/lib/ –with-libraries=thread

Remember the entire guide for unix based system is here, you just had to do some extra steps for OS X.

Also, for those having issues adding dynamic libraries (like the ones created) to your XCode project, check out: Creating working dylibs


Leave a Reply

Your email address will not be published. Required fields are marked *