From BlenderWiki

Jump to: navigation, search
Note: This is an archived version of the Blender Developer Wiki. The current and active wiki is available on wiki.blender.org.

Build Notes

Boost

archlinux: Boost 1.54.0-3 on archlinux comes without static libs (this will probably get fixed). To install boost package with static libs, follow the instructions below. The last wget patch adds static libs config option to PKGBUILD.

mkdir boost_pkg
cd boost_pkg
wget -O PKGBUILD https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/boost
wget -O boost-1.53.0-python3.patch https://projects.archlinux.org/svntogit/packages.git/plain/trunk/boost-1.53.0-python3.patch?h=packages/boost
wget -O boost-1.54.0-Fix-macro-for-int128-detection.patch https://projects.archlinux.org/svntogit/packages.git/plain/trunk/boost-1.54.0-Fix-macro-for-int128-detection.patch?h=packages/boost
wget -O fix-new-glibc.patch https://projects.archlinux.org/svntogit/packages.git/plain/trunk/fix-new-glibc.patch?h=packages/boost
wget -O boost-seperate-static-libs-1.54.0-3.patch https://bugs.archlinux.org/task/34491?getfile=11045
patch -p0 < boost-seperate-static-libs-1.54.0-3.patch PKGBUILD
makepkg -s
sudo pacman -U boost-1.54.0-4-x86_64.pkg.tar.xz boost-libs-1.54.0-4-x86_64.pkg.tar.xz boost-static-libs-1.54.0-4-x86_64.pkg.tar.xz
cd ..

HDF5

HDF5 is optional (see Blender config)

archlinux: HDF5 1.8.10_patch1-1 comes without static libs.

mkdir hdf5_pkg
cd hdf5_pkg
wget -O PKGBUILD https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/hdf5
wget -O hdf5-static-libs-1.8.10_patch1-1.patch http://wiki.blender.org/uploads/4/4c/Hdf5-static-libs-1.8.10_patch1-1.patch
patch -p0 < hdf5-static-libs-1.8.10_patch1-1.patch PKGBUILD
makepkg -s
sudo pacman -U hdf5-1.8.11-1-x86_64.pkg.tar.xz
cd ..

Alembic

Branch is built against Alembic 1.5.1 tag.

hg clone https://code.google.com/p/alembic/
hg checkout 1_05_01

Basic instructions for building Alembic can be found in the README.txt file.

Alembic 1.5.1 is natively built against boost 1.47, but works with 1.54 as well (see workaround below). Boost version hopefully will be updated soon.

When using the boostrap script the boost_trycompile module may fail with undefined reference to `boost::system::system_category()'. When asked, just enter "n" and continue.

After running bootstrap, make sure alembic builds static libs too:

BUILD_STATIC_LIBS=ON

Blender

Git branch for Alembic point cache: alembic pointcache branch

Alembic folders are probably not found automatically. To help cmake, set ALEMBIC_ROOT_DIR before running it, e.g.:

ALEMBIC_ROOT_DIR=/usr/local/alembic-1.5.1 cmake [...] -D WITH_ALEMBIC=ON

To enable HDF5 support in Alembic, set:

WITH_HDF5=ON