Skip to content

Instantly share code, notes, and snippets.

@rsgalloway
Last active June 3, 2016 08:07
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rsgalloway/5835065 to your computer and use it in GitHub Desktop.
Save rsgalloway/5835065 to your computer and use it in GitHub Desktop.
Alembic Build Notes

Alembic Build Notes

Alembic 1.5.1 Boost 1.49 OpenEXR 2.0.1 HDF5 1.8.9

Building HDF5

From the alembic/doc/HDF5-howtobuild.txt document :

> setenv LDFLAGS "-fPIC"
> setenv CFLAGS "-m64 -fPIC"
> ./configure \
--prefix=/usr/local/hdf5\
--with-pic \
--enable-production \
--disable-debug \
--enable-threadsafe \
--with-pthread=/usr/include,/usr/lib
> make
> make install

Building Boost

Build Boost :

> setenv PYTHON /usr/bin/python2.6
> setenv PYTHON_VERSION 2.6
> ./bootstrap.sh \
--prefix=/usr/local/boost \
--with-python=python2.6 \
--with-libraries=python \
--with-libraries=program_options \
--with-libraries=thread
> ./b2 --clean
> ./b2 cxxflags=-fPIC cflags=-fPIC install

Building IlmBase/PyIlmBase

Build IlmBase :

> setenv CFLAGS "-fPIC"
> setenv CXXFLAGS "-fPIC"
> ./configure --prefix=/usr/local/ilmbase
> make
> make install

Build PyIlmBase :

> ./bootstrap
> setenv PYTHON /usr/bin/python2.6
> setenv PYTHON_VERSION 2.6
> setenv LD_LIBRARY_PATH /usr/local/ilmbase/lib:/usr/local/boost/lib
> setenv LDFLAGS "-L/usr/local/boost/lib -L/usr/local/ilmbase/lib"
> setenv CPPFLAGS -I/usr/local/boost/include
> ./configure \
--with-ilmbase-prefix=/usr/local/ilmbase \
--without-numpy \
--prefix=/usr/local/pyilmbase
> make
> make install

Building Alembic/PyAlembic

Running the bootstrap from your build dir :

> ~/alembic/build/bootstrap/alembic_bootstrap.py \
 --dependency-install-root=/usr/local/ . \
 --enable-pyalembic
> make
> make install

Docs

http://docs.alembic.io/python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment