Home

Awesome

Building Pixar's USD

This git repository is meant to help you building USD: https://github.com/PixarAnimationStudios/USD The scripts should be able to do everything for you:

The ultimate result should be to have a fully compiled version of USD

For more details on USD, please refer to this page: http://graphics.pixar.com/usd/docs/Introduction-to-USD.html

Notes on the scripts:

Notes on installing USD "by hand"

Here are the notes I took when trying to gather everything consistently for USD to compile. Although these notes aren't relevant for using the scripts, I wanted to keep there and share them here, so that one could better figure-out what is at stake. When I was figuring-out which Ubuntu packages were needed, I often used this linke to check dependencies and required packages: Quite interesting to have a look at debian packages to know what to take: https://www.debian.org/distrib/packages#search_contents

get ready for git

You need to make sure you have a proper RSA key for SSH, so git can clone/pull properly <todo add details>

Python

sudo apt-get install python-dev

Boost

It is unfortunate but you need boost :-/ Get boost at http://www.boost.org/users/history/version_1_62_0.html Then:

Threading Building Blocks

At https://www.threadingbuildingblocks.org/ Just keep it where you downloaded it: it already contains the binaries... and not need to bother with installing it (it turned out to be a problem for me). Then later you just need to set

double conversion

At https://github.com/google/double-conversion

Open Image IO

At https://github.com/OpenImageIO/oiio A first easy solution would be to install the existing one in the packages:

But I found better to build it...

To build it, you'll need the following:

PNG library

At http://www.libpng.org/pub/png/libpng.html

Then you can build oiio ! But with these changes in cmake options:

OpenEXR

At http://www.openexr.com/ Either build it and install it:

I found fine to just build it...

PTex

At https://github.com/wdas/ptex cmake needs zlib

OpenSubdiv

At https://github.com/PixarAnimationStudios/OpenSubdiv

Then you might want to cancel anything that prevents to setup cmake. At this point, it is up to you. For USD, I didn't bother using OpenCL or CUDA:

later for USD:

Qt

I certainly didn't bother installing anything related to Qt outside of Ubuntu package system...

Python

USD relies heavily on Python ! could you need Pyside... howewver it may not be so necessary: I could configure everything without it in a second test: -- sudo apt-get install libpyside-dev -- sudo apt-get install pyside-tools

Python needs an OpenGL module:

Possible issues with cmake for USD

These are issues I encoutered but, later, when trying again with a brand new system (Ubuntu 16.04), I did not get these errors anymore. However given we never know what can happen on another machine, I did prefer to keep these details here for whoever might encounter the same:

OIIO version issues

I think this issue came from the fact I tried the package of oiio instead of the latest source code. Leading to some missing entry points

OpenEXR

if using an older version or pulling things from apt-get, it is possible that cmake script, in FindOpenEXR.cmake fails: it turns out that the regexp to track the version fails. OPENEXR_VERSION_STRING does NOT exist in OpenEXR.

If you installed from apt-get, it is possible that OPENEXR_${OPENEXR_LIB}_LIBRARY / OPENEXR_LIBRARY_DIR needs to look into lib/x86_64-linux-gnu/... Note: If you compile it, install would put it in /usr/local/lib and shouldn't raise any issue

OpenSubdiv

OpenSubdiv must be installed in /usr/local in any case, it seems...