Daniel Elliott

Compiling Openvdb on osx

Just download houdini apprentice and use this shell script….. will look into what the correct install prefix is for the houdini dsos and how they link with the main vdb dso

#!/bin/sh
rm -f CMakeCache.txt
export BLOSC_ROOT=$HT
export TBB_ROOT=$HT
export ILMBASE_ROOT=$HT
export OPENEXR_ROOT=$HT
export GLFW3_ROOT=/usr/local/Cellar/glfw/3.2.1/ #<--------FROM HOMEBREW export CPPUNIT_ROOT=/usr/local/Cellar/cppunit/1.14.0/ #<--------FROM HOMEBREW cmake \ -D OPENVDB_3_ABI_COMPATIBLE \ #<-------- IF COMPILING FOR HOUDINI 16 (future versions of houdini might not need this) -D ZLIB_ROOT=$HT \ -D BOOST_ROOT=$HT \ -D BOOST_LIBRARYDIR=$HDSO \ -D ILMBASE_LIBRARYDIR=$HDSO \ -D OPENEXR_LIBRARYDIR=$HDSO \ -D OPENEXR_NAMESPACE_VERSIONING=OFF \ #<--------THIS IS ADDED! -D BLOSC_LIBRARYDIR=$HDSO \ -D TBB_LIBRARYDIR=$HDSO \ -D ZLIB_LIBRARY=$HDSO/libz.dylib \ #<--------THIS IS CHANGED FROM .SO to .dylib! -D HDK_AUTO_GENERATE_SESITAG=OFF \ -D OPENVDB_BUILD_HOUDINI_SOPS=ON \ -D CMAKE_CXX_FLAGS="-fPIC -std=c++11" \ -D CMAKE_CXX_FLAGS= '${CMAKE_CXX_FLAGS} /OPENVDB_3_ABI_COMPATIBLE=1' \ #<--------MAKE COMPATIBLE WITH H16 -D USE_GLFW3=ON \ -D GLFW3_USE_STATIC_LIBS=OFF \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=$HOME/systems/OpenVDB/v4.0.0 \ -D _ECLIPSE_VERSION=4.6 \ -G "Eclipse CDT4 - Unix Makefiles" \ ..

Leave a Reply

Your email address will not be published. Required fields are marked *