Hello there,
I've build OpenVDB 4.0.1 with the instruction provide by 'BuildingWithCMake.md' in the package.
I'm using this configuration for cmake and all want fine:
export ILMBASE_ROOT=/prod/softprod/libs/openexr/2.2.0
export OPENEXR_ROOT=/prod/softprod/libs/openexr/2.2.0
export GLFW3_LOCATION=/prod/softprod/libs/glfw/3.2.1
export MAYA_LOCATION=/prod/softprod/apps/maya/2016.sp6/linux
export BLOSC_LOCATION=/prod/softprod/libs/c-blosc/1.7.1
export TBB_ROOT=$MAYA_LOCATION
export BOOST_ROOT=/prod/softprod/libs/boost/1.61.0
export LD_LIBRARY_PATH=$BOOST_ROOT/lib:$ILMBASE_ROOT/lib:$OPENEXR_ROOT/lib:$GLFW3_ROOT/lib:$BLOSC_ROOT/lib
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ \
-D CMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc \
-D CMAKE_CXX_FLAGS=-std=c++11 \
-D BLOSC_LOCATION=/prod/softprod/libs/c-blosc/1.7.1 \
-D Tbb_TBB_LIBRARY=$MAYA_LOCATION/lib/libtbb.so \
-D Tbb_TBBMALLOC_LIBRARY=$MAYA_LOCATION/lib/libtbbmalloc.so \
-D OPENVDB_ENABLE_3_ABI_COMPATIBLE=ON \
-D OPENVDB_BUILD_UNITTESTS=OFF \
-D OPENVDB_BUILD_DOCS=OFF \
-D OPENVDB_BUILD_MAYA_PLUGIN=ON \
-D OPENVDB_ENABLE_RPATH=ON \
-D ILMBASE_NAMESPACE_VERSIONING=OFF \
-D OPENEXR_NAMESPACE_VERSIONING=OFF \
-D USE_GLFW3=ON \
-D GLFW3_LOCATION=/prod/softprod/libs/glfw/3.2.1 \
-D Boost_USE_STATIC_LIBS=ON \
-D Blosc_USE_STATIC_LIBS=ON \
-D CPPUnit_USE_STATIC_LIBS=ON \
-D CMAKE_INSTALL_PREFIX=/prod/softprod/libs/openvdb/4.0.1 \
../
make
make install
But when i try to load the OpenVDB.so plugin, it failed with an error:
/prod/softprod/libs/openvdb/4.0.1/maya2016/plug-ins/OpenVDB.so: undefined symbol: _ZNK7MPxNode9dependsOnERK5MPlugS2_Rb //
// Error: line 1: /prod/softprod/libs/openvdb/4.0.1/maya2016/plug-ins/OpenVDB.so: undefined symbol: _ZNK7MPxNode9dependsOnEdevRK5MPlugS2_Rb (OpenVDB) //
I'm on Centos 6.8. I'm using devtoolset-2 (gcc 48.2).
I don't know where to search for resolving this error...
Can you help me please.
Thank
Hello there,
I've build OpenVDB 4.0.1 with the instruction provide by 'BuildingWithCMake.md' in the package.
I'm using this configuration for cmake and all want fine:
export ILMBASE_ROOT=/prod/softprod/libs/openexr/2.2.0
export OPENEXR_ROOT=/prod/softprod/libs/openexr/2.2.0
export GLFW3_LOCATION=/prod/softprod/libs/glfw/3.2.1
export MAYA_LOCATION=/prod/softprod/apps/maya/2016.sp6/linux
export BLOSC_LOCATION=/prod/softprod/libs/c-blosc/1.7.1
export TBB_ROOT=$MAYA_LOCATION
export BOOST_ROOT=/prod/softprod/libs/boost/1.61.0
export LD_LIBRARY_PATH=$BOOST_ROOT/lib:$ILMBASE_ROOT/lib:$OPENEXR_ROOT/lib:$GLFW3_ROOT/lib:$BLOSC_ROOT/lib
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ \
-D CMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc \
-D CMAKE_CXX_FLAGS=-std=c++11 \
-D BLOSC_LOCATION=/prod/softprod/libs/c-blosc/1.7.1 \
-D Tbb_TBB_LIBRARY=$MAYA_LOCATION/lib/libtbb.so \
-D Tbb_TBBMALLOC_LIBRARY=$MAYA_LOCATION/lib/libtbbmalloc.so \
-D OPENVDB_ENABLE_3_ABI_COMPATIBLE=ON \
-D OPENVDB_BUILD_UNITTESTS=OFF \
-D OPENVDB_BUILD_DOCS=OFF \
-D OPENVDB_BUILD_MAYA_PLUGIN=ON \
-D OPENVDB_ENABLE_RPATH=ON \
-D ILMBASE_NAMESPACE_VERSIONING=OFF \
-D OPENEXR_NAMESPACE_VERSIONING=OFF \
-D USE_GLFW3=ON \
-D GLFW3_LOCATION=/prod/softprod/libs/glfw/3.2.1 \
-D Boost_USE_STATIC_LIBS=ON \
-D Blosc_USE_STATIC_LIBS=ON \
-D CPPUnit_USE_STATIC_LIBS=ON \
-D CMAKE_INSTALL_PREFIX=/prod/softprod/libs/openvdb/4.0.1 \
../
make
make install
But when i try to load the OpenVDB.so plugin, it failed with an error:
/prod/softprod/libs/openvdb/4.0.1/maya2016/plug-ins/OpenVDB.so: undefined symbol: _ZNK7MPxNode9dependsOnERK5MPlugS2_Rb //
// Error: line 1: /prod/softprod/libs/openvdb/4.0.1/maya2016/plug-ins/OpenVDB.so: undefined symbol: _ZNK7MPxNode9dependsOnEdevRK5MPlugS2_Rb (OpenVDB) //
I'm on Centos 6.8. I'm using devtoolset-2 (gcc 48.2).
I don't know where to search for resolving this error...
Can you help me please.
Thank
Can't find what you're looking for? Ask the community or share your knowledge.