Compiling Boost

As of this writing, we are using Boost 1.46.0.

Linux

Nothing special, just followed the directions. Did this on a 32-bit install of Ubuntu. Maybe there is a way to make this more "universal"?

./bootstrap.sh --prefix=build
./bjam
./bjam install 

Mac

Built according to the instructions at http://www.technoboria.com/2009/12/compiling-boost-on-mac-os-x-for-64bit-builds/ to get a 32-bit and 64-bit intel universal binary:

./bootstrap.sh --prefix=build
./bjam architecture=x86 address-model=32_64
./bjam architecture=x86 address-model=32_64 install 

Windows

Useful info at http://stackoverflow.com/questions/494629/building-boost-for-static-linking-mingw . So, launch the Visual Studio 2008 Command Prompt, cd into the Boost download and do this:

bootstrap.bat --prefix=build
bjam install --toolset=msvc variant=release link=static threading=multi runtime-link=static

It looks like Windows doesn't understand the "prefix" option, and the builds just end up in C:\Boost. But it seems to at least build. But...

Unfortunately, on Windows, you cannot link the debug version to a release version of boost. So you have to build the debug version of Boost too.

bjam install --toolset=msvc variant=debug link=static threading=multi runtime-link=static