来自:http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/Building
For OpenImageIO, we need to install Git, e.g. on Ubuntu:
sudo apt-get install git-core
Create Folders:
mkdir blender-cycles
cd blender-cycles
mkdir boost
cd boost
Download a recent version of boost, e.g. version 1.47, and move the .zip file into the boost folder in the blender-cycles folder.
Build Boost:
tar xzf boost_1_47_0.tar.gz
cd boost_1_47_0/
./bootstrap.sh
./bjam -j4 variant=release link=static threading=multi --with-filesystem --with-thread --with-regex --with-system --with-date_time stage install --prefix=../
cd ../..
Build OpenImageIO:
git clone git://github.com/OpenImageIO/oiio.git
cd oiio
git checkout RB-0.10
mkdir -p build/linux
cd build/linux
cmake ../../src/ -DBUILDSTATIC=1 -DBOOST_CUSTOM=1 -DBoost_INCLUDE_DIRS=`pwd`/../../../boost/include/ -DBoost_LIBRARY_DIRS=`pwd`/../../../boost/lib -DBoost_LIBRARIES="boost_date_time;boost_filesystem;boost_thread;boost_regex;boost_system" -DCMAKE_INSTALL_PREFIX=`pwd`/../../dist/linux
make -j4 install
cd ../../..