Arnold USD is currently supported and tested on Windows, Linux and Mac.
It is advised to use the same dependencies used to build USD, or the current VFX platform. We target USD versions starting from v19.01 up to the latest commit on the dev branch.
Python and Boost are optional if USD was build without Python support.
Name | Version | Optional |
---|---|---|
Arnold | 6.0.3+ | |
USD | v19.11 - v21.08 | |
Python | 2.7 | x |
Boost | 1.55 (Linux), 1.61 (Mac, Windows VS 2015), 1.65.1 (Windows VS 2017) or 1.66.0 (VFX platform) | x |
TBB | 4.4 Update 6 or 2018 (VFX platform) |
Newer releases of Windows 10 ship with a set of app shortcuts that open the Microsoft Store to install Python 3 instead of executing the Python interpreter available in the path. This feature breaks the abuild
script. To disable this, open the Settings app, and search for Manage app execution aliases. On this page turn off any shortcut related to Python.
Builds can be configured by either creating a custom.py
file in the root of the cloned repository, or by passing the build flags to the abuild
script. Once the configuration is set, use the abuild
script to build the project and abuild install
to install the project. Using -j
when executing abuild
instructs SCons to use multiple cores. For example: abuild -j 8 install
will use 8 cores to build the project.
Sample custom.py
files are provided in the Examples section below.
MODE
: Sets the compilation mode,opt
for optimized builds,debug
for debug builds, andprofile
for optimized builds with debug information for profiling.WARN_LEVEL: Warning level,
strictenables errors for warnings,
warn-onlyprints warnings and
none` turns of errors.COMPILER
: Compiler to use.gcc
orclang
(default isgcc
) on Linux and Mac, andmsvc
on Windows.BUILD_SCHEMAS
: Whether or not to build the schemas and their wrapper.BUILD_RENDER_DELEGATE
: Whether or not to build the hydra render delegate.BUILD_NDR_PLUGIN
: Whether or not to build the node registry plugin.BUILD_USD_WRITER
: Whether or not to build the arnold to usd writer tool.BUILD_PROCEDURAL
: Whether or not to build the arnold procedural.BUILD_TESTSUITE
: Whether or not to build the testsuite.BUILD_DOCS
: Whether or not to build the documentation.DISABLE_CXX11_ABI
: Disabling the new C++ ABI introduced in GCC 5.1.
ARNOLD_PATH
: Path to the Arnold SDK.ARNOLD_API_INCLUDES
: Path to the Arnold API include files. Set to$ARNOLD_PATH/include
by default.ARNOLD_API_LIB
: Path to the Arnold API Library files. Set to$ARNOLD_PATH/bin
on Linux and Mac, and$ARNOLD_PATH/lib
on Windows by default.ARNOLD_BINARIES
: Path to the Arnold API Executable files. Set to$ARNOLD_PATH/bin
by default.ARNOLD_PYTHON
: Path to the Arnold API Python files. Set to$ARNOLD_PATH/bin
by default.USD_PATH
: Path to the USD Installation Root.USD_INCLUDE
: Path to the USD Headers. Set to$USD_PATH/include
by default.USD_LIB
: Path to the USD Libraries. Set to$USD_PATH/lib
by default.USD_BIN
: Path to the USD Executables. Set to$USD_PATH/include
by default.USD_BUILD_MODE
: Build mode of USD.shared_libs
is when there is a separate library for each module,monolithic
is when all the modules are part of a single library andstatic
is when there is a singular static library for all USD. Note,static
only supported when building the procedural and the usd -> ass converter.USD_MONOLITHIC_LIBRARY
: Name of the USD monolithic library'. By default it isusd_ms
.USD_LIB_PREFIX
: USD library name prefix. By default it is set tolib
on all platforms.BOOST_INCLUDE
: Where to find the boost headers. By default this points inside the USD installation, and works when USD is deployed using the official build scripts.BOOST_LIB
: Where to find the Boost Libraries.BOOST_LIB_NAME
: Boost library name pattern. By default it is set toboost_%s
, meaning scons will look for boost_python.PYTHON_INCLUDE
: Where to find the Python Includes. This is only required if USD is built with Python support. See below.PYTHON_LIB
: Where to find the Python Library. This is only required if USD is built with Python support. See below.PYTHON_LIB_NAME
: Name of the python library. By default it ispython27
.TBB_INCLUDE
: Where to find TBB headers.TBB_LIB
: Where to find TBB libraries.
PREFIX
: Directory to install under.PREFIX_PROCEDURAL
: Directory to install the procedural under. Defaults toprefix/procedural
.PREFIX_RENDER_DELEGATE
: Directory to install the render delegate under. Defaults toprefix/plugin
.PREFIX_NDR_PLUGIN
: Directory to install the ndr plugin under. Defaults toprefix/plugin
.PREFIX_HEADERS
: Directory to install the headers under. Defaults toprefix/include
.PREFIX_LIB
: Directory to install the libraries under. Defaults toprefix/lib
.PREFIX_BIN
: Directory to install the binaries under. Defaults toprefix/bin
.PREFIX_DOCS
: Directory to install the documentation under. Defaults toprefix/docs
.PREFIX_THIRD_PARTY
: Directory to install the third party modules under. Defaults toprefix/third_party
.
This simple example custom.py
builds the project on Linux, against the system Python libraries and a monolithic USD build.
ARNOLD_PATH='/opt/autodesk/arnold-5.4.0.0'
USD_PATH='/opt/pixar/USD'
USD_BUILD_MODE='monolithic'
BOOST_INCLUDE='/usr/include'
PYTHON_INCLUDE='/usr/include/python2.7'
PYTHON_LIB='/usr/lib'
PYTHON_LIB_NAME='python2.7'
PREFIX='/opt/autodesk/arnold-usd'
This is the same configuration, this time passed directly to abuild
on the command line:
abuild ARNOLD_PATH='/opt/autodesk/arnold-5.4.0.0' USD_PATH='/opt/pixar/USD' USD_BUILD_MODE='monolithic' BOOST_INCLUDE='/usr/include' PYTHON_INCLUDE='/usr/include/python2.7' PYTHON_LIB='/usr/lib' PYTHON_LIB_NAME='python2.7' PREFIX='/opt/autodesk/arnold-usd'
USD 20.05 requires GCC 6.3.1 and the use of C++-14. This can be achieved using the following snippet on CentOS 7. For other OSes replace the SHCXX line with a path to your local g++ 6.3.1 and later installation.
SHCXX='/opt/rh/devtoolset-6/root/usr/bin/g++'
CXX_STANDARD='14'
DISABLE_CXX11_ABI=True
We support building against the libraries shipping with Houdini 18.0+ and using the render delegate in the Solaris viewport. As of now (18.0.287) Houdini does not ship usdGenSchema
, so the schemas target cannot be built against Houdini. Houdini prefixes standard USD library names with libpxr_
(i.e. libusd.so
becomes libpxr_usd.so
), which can be configured via the USD_LIB_PREFIX
variable. On Linux and macOS, Boost libraries are prefixed with h
, on Windows Boost libraries are prefixed with h
and suffixed with -mt
(i.e. boost_python.lib
becomes hboost_python-mt.lib
), which requires setting the BOOST_LIB_NAME
variable.
Here's an example custom.py
for the default installation of Houdini 18.0.287 on macOS:
ARNOLD_PATH='/opt/solidAngle/arnold'
WARN_LEVEL='warn-only'
USD_PATH='./'
USD_LIB='/Applications/Houdini/Houdini18.0.287/Frameworks/Houdini.framework/Versions/Current/Libraries'
USD_INCLUDE='/Applications/Houdini/Houdini18.0.287/Frameworks/Houdini.framework/Versions/Current/Resources/toolkit/include'
USD_BIN='/Applications/Houdini/Houdini18.0.287/Frameworks/Houdini.framework/Versions/Current/Resources/bin'
USD_BUILD_MODE='shared_libs'
USD_LIB_PREFIX='libpxr_'
BOOST_INCLUDE='/Applications/Houdini/Houdini18.0.287/Frameworks/Houdini.framework/Versions/Current/Resources/toolkit/include/hboost'
BOOST_LIB='/Applications/Houdini/Houdini18.0.287/Frameworks/Houdini.framework/Versions/Current/Libraries'
BOOST_LIB_NAME='hboost_%s'
PYTHON_INCLUDE='/Applications/Houdini/Houdini18.0.287/Frameworks/Python.framework/Versions/2.7/include/python2.7'
PYTHON_LIB='/Applications/Houdini/Houdini18.0.287/Frameworks/Python.framework/Versions/2.7/lib'
PYTHON_LIB_NAME='python2.7'
BUILD_SCHEMAS=False
BUILD_RENDER_DELEGATE=True
BUILD_USD_WRITER=True
BUILD_PROCEDURAL=True
BUILD_TESTSUITE=True
BUILD_DOCS=True
PREFIX='/opt/solidAngle/arnold-usd'
Example custom.py
for the default installation of Houdini 18.0.287 on Windows:
ARNOLD_PATH=r'C:\solidAngle\arnold'
USD_PATH='./'
USD_BIN='./'
USD_INCLUDE=r'C:\Program Files\Side Effects Software\Houdini 18.0.287\toolkit\include'
USD_LIB=r'C:\Program Files\Side Effects Software\Houdini 18.0.287\custom\houdini\dsolib'
USD_LIB_PREFIX='libpxr_'
BOOST_INCLUDE=r'C:\Program Files\Side Effects Software\Houdini 18.0.287\toolkit\include\hboost'
BOOST_LIB=r'C:\Program Files\Side Effects Software\Houdini 18.0.287\custom\houdini\dsolib'
BOOST_LIB_NAME='hboost_%s-mt'
PYTHON_INCLUDE=r'C:\Program Files\Side Effects Software\Houdini 18.0.287\toolkit\include\python2.7'
PYTHON_LIB=r'c:\Program Files\Side Effects Software\Houdini 18.0.287\python27\libs'
PYTHON_LIB_NAME='python27'
USD_BUILD_MODE='shared_libs'
BUILD_SCHEMAS=False
BUILD_RENDER_DELEGATE=True
BUILD_PROCEDURAL=True
BUILD_TESTSUITE=True
BUILD_USD_WRITER=True
BUILD_DOCS=False
PREFIX=r'C:\solidAngle\arnold-usd'
Example custom.py
for the default installation of Houdini 18.0.287 on Linux using the system's Python. Note, Houdini 18 requires the use of GCC 6.3.1 and C++ 14. The example is for a CentOS 7 installation, replace the value of SHCXX line with a path to your local install of GCC 6.3.1 and later if using a different distro.
ARNOLD_PATH='/opt/solidAngle/arnold'
USD_PATH='./'
USD_BIN='./'
USD_INCLUDE='/opt/hfs18.0/toolkit/include'
USD_LIB='/opt/hfs18.0/dsolib'
USD_LIB_PREFIX='libpxr_'
PREFIX='/opt/solidAngle/arnold-usd'
BOOST_INCLUDE='/opt/hfs18.0/toolkit/include/hboost'
BOOST_LIB='/opt/hfs18.0/dsolib'
BOOST_LIB_NAME='hboost_%s'
PYTHON_INCLUDE='/usr/include/python2.7'
PYTHON_LIB='/usr/lib'
PYTHON_LIB_NAME='python2.7'
USD_BUILD_MODE='shared_libs'
SHCXX='/opt/rh/devtoolset-6/root/usr/bin/g++'
CXX_STANDARD='14'
DISABLE_CXX11_ABI=True
BUILD_SCHEMAS=False
BUILD_RENDER_DELEGATE=True
BUILD_NDR_PLUGIN=True
BUILD_PROCEDURAL=True
BUILD_TESTSUITE=True
BUILD_USD_WRITER=True
BUILD_DOCS=True
We also support building the project with cmake to allow for greater flexibility and generating IDE projects for all major platforms. We require CMake 3.12. For controlling the build type, c++ standard, installation or embedding RPATHS, use the appropriate [https://cmake.org/cmake/help/v3.12/manual/cmake-variables.7.html](CMake Variable).
BUILD_SCHEMAS
: Whether or not to build the schemas and their wrapper.BUILD_RENDER_DELEGATE
: Whether or not to build the hydra render delegate.BUILD_NDR_PLUGIN
: Whether or not to build the node registry plugin.BUILD_USD_WRITER
: Whether or not to build the arnold to usd writer tool.BUILD_PROCEDURAL
: Whether or not to build the arnold procedural.BUILD_TESTSUITE
: Whether or not to build the testsuite.BUILD_UNIT_TESTS
: Whether or not to build the unit tests.BUILD_DOCS
: Whether or not to build the documentation.BUILD_DISABLE_CXX11_ABI
: Disabling the new C++ ABI introduced in GCC 5.1.BUILD_HEADERS_AS_SOURCES
: Add headers are source files to the target to help when generating IDE projects.
ARNOLD_LOCATION
: Path to the Arnold SDK.USD_LOCATION
: Path to the USD Installation Root.USD_INCLUDE_DIR
: Path to the USD Headers, optional. Use if not using a standard USD installation layout.USD_LIBRARY_DIR
: Path to the USD Libraries, optional. Use if not using a standard USD installation layout.USD_BINARY_DIR
: Path to the USD Executables, optional. Use if not using a standard USD installation layout.USD_STATIC_BUILD
: If the USD dependency is statically linked.USD_LIB_EXTENSION
: Extension of USD libraries.USD_STATIC_LIB_EXTENSION
: Extension of the static USD libraries.USD_LIB_PREFIX
: Prefix of USD libraries.USD_OVERRIDE_PLUGINPATH_NAME
: The PXR_PLUGINPATH_NAME environment variable name of the used USD library.TBB_ROOT_DIR
: The base directory the of TBB installation.TBB_FOUND
: Set to ON if manual override of the TBB variables is required due to non-standard TBB installation layout.TBB_INCLUDE_DIRS
: Where to find TBB headers, optional. Use if not using a standard TBB installation layout.TBB_LIBRARIES
: Where to find TBB libraries, optional. Use if not using a standard TBB installation layout.BOOST_ROOT
: Path to the Boost Installation Root.BUILD_USE_CUSTOM_BOOST
: Set to ON if a manual override of the Boost variables is required to to a non-standard Boost installation layout.Boost_INCLUDE_DIRS
: Where to find Boost headers, optional. Use if not using a standard Boost installation layout.Boost_LIBRARIES
: Where to find Boost libraries, optional. Use if not using a standard Boost installation layout.GOOGLETEST_LOCATION
: Path to the Google Test Installation Root.GOOGLETEST_LIB_EXTENSION
: Extension of Google Test libraries.GOOGLETEST_LIB_PREFIX
: Prefix of Google Test libraries.GTEST_INCLUDE_DIR
: Path to the Google Test Headers, optional. Use if not using a standard Google Test installation layout.GTEST_LIBRARYDIR
: Path to the Google Test Libraries, optional. Use if not using a standard Google Test installation layout.
CMAKE_INSTALL_PREFIX
: Directory to install under.PREFIX_PROCEDURAL
: Directory to install the procedural under.PREFIX_PLUGINS
: Directory to install the plugins (Hydra and Ndr) under.PREFIX_HEADERS
: Directory to install the headers under.PREFIX_LIB
: Directory to install the libraries under.PREFIX_BIN
: Directory to install the binaries under.PREFIX_DOCS
: Directory to install the documentation under.
In our examples we create a subfolder inside the source repository named build
then run the cmake cmake configuration from there.
Note, we are setting CMAKE_BUILD_TYPE
to Release
in all the examples.
This example configures the project on Linux against a USD built using the official build scripts. In our example USD is installed at /opt/USD
, google test is at /opt/googletest
/, arnold is at /opt/arnold
. We are using GCC 6.3.1+, see your distribution specific instructions for using the approprate GCC. Once configuration is done, you can use make
and make install
to build and install the project.
cmake ..
-DCMAKE_BUILD_TYPE=Release
-DARNOLD_LOCATION=/opt/arnold
-DUSD_LOCATION=/opt/USD
-DTBB_FOUND=ON
-DTBB_INCLUDE_DIRS=/opt/USD/include
-DTBB_LIBRARIES=/opt/USD/lib/libtbb.so
-DBOOST_ROOT=/opt/USD
-DBUILD_UNIT_TESTS=ON
-DGOOGLETEST_LOCATION=/opt/googletest
-DCMAKE_CXX_STANDARD=14
-DCMAKE_INSTALL_PREFIX=/opt/arnold-usd
This example builds the project against a standard, symlinked, installation of Houdini 18 on Centos. In our example Arnold is installed at /opt/arnold
. We are using GCC 6.3.1+, see your distribution specific instructions for using the approprate GCC.
cmake ..
-DCMAKE_BUILD_TYPE=Release
-DARNOLD_LOCATION=/opt/arnold
-DUSD_LIB_PREFIX=libpxr_
-DUSD_INCLUDE_DIR=/opt/hfs18.0/toolkit/include
-DUSD_LIBRARY_DIR=/opt/hfs18.0/dsolib
-DBUILD_USE_CUSTOM_BOOST=ON
-DBUILD_SCHEMAS=OFF
-DBoost_INCLUDE_DIRS=/opt/hfs18.0/toolkit/include/hboost
-DBoost_LIBRARIES=/opt/hfs18.0/dsolib/libhboost_python.so
-DTBB_FOUND=ON
-DTBB_INCLUDE_DIRS=/opt/hfs18.0/toolkit/include
-DTBB_LIBRARIES=/opt/hfs18.0/dsolib/libtbb.so
-DBUILD_DISABLE_CXX11_ABI=ON
-DCMAKE_CXX_STANDARD=14
-DCMAKE_INSTALL_PREFIX=/opt/arnold-usd
On windows, it's also an option to use https://cmake.org/runningcmake/, instead of the command line.
This example configures arnold-usd using a stock build of USD 20.08 (using the supplied build script), installed at C:\USD
, with arnold installed at C:\arnold
, google test installed at C:\googletest
and a default Python 2.7 installation. USD was built using Visual Studio 2019.
cmake ..
-G "Visual Studio 16 2019"
-DCMAKE_INSTALL_PREFIX=C:\arnold-usd
-DCMAKE_CXX_STANDARD=14
-DARNOLD_LOCATION=C:\arnold
-DUSD_INCLUDE_DIR=C:\USD\include
-DUSD_LIBRARY_DIR=C:\USD\lib
-DBUILD_SCHEMAS=OFF
-DBUILD_UNIT_TESTS=ON
-DPython2_ROOT_DIR=C:\Python27
-DBUILD_USE_CUSTOM_BOOST=ON
-DBoost_INCLUDE_DIRS=C:\USD\include\boost-1_70
-DBoost_LIBRARIES=C:\USD\lib\boost_python27-vc142-mt-x64-1_70.lib
-DTBB_FOUND=ON
-DTBB_INCLUDE_DIRS=C:\USD\include
-DTBB_LIBRARIES=C:\USD\lib\tbb.lib
-DGOOGLETEST_LOCATION=C:\googletest
This example configures arnold-usd for Houdini 18.0.499 on Windows using the default installation folder, with arnold installed at C:\arnold
. Note, as of 18.0.499, Houdini lacks inclusion of usdgenschema, so we have to disable generating the custom schemas.
cmake ..
-G "Visual Studio 15 2017 Win64"
-DCMAKE_INSTALL_PREFIX="C:\dist\arnold-usd"
-DARNOLD_LOCATION="C:\arnold"
-DUSD_INCLUDE_DIR="C:\Program Files\Side Effects Software\Houdini 18.0.499\toolkit\include"
-DUSD_LIBRARY_DIR="C:\Program Files\Side Effects Software\Houdini 18.0.499\custom\houdini\dsolib"
-DUSD_LIB_PREFIX=libpxr_
-DBUILD_SCHEMAS=OFF
-DTBB_FOUND=ON
-DTBB_INCLUDE_DIRS="C:\Program Files\Side Effects Software\Houdini 18.0.499\toolkit\include"
-DTBB_LIBRARIES="C:\Program Files\Side Effects Software\Houdini 18.0.499\custom\houdini\dsolib\tbb.lib"
-DBUILD_USE_CUSTOM_BOOST=ON
-DBoost_INCLUDE_DIRS="C:\Program Files\Side Effects Software\Houdini 18.0.499\toolkit\include\hboost"
-DBoost_LIBRARIES="C:\Program Files\Side Effects Software\Houdini 18.0.499\custom\houdini\dsolib\hboost_python-mt.lib"
-DPython2_ROOT_DIR="C:\Program Files\Side Effects Software\Houdini 18.0.499\python27"