Comments (5)
I feel that I should probably expand on what I've submitted.
When trying to build the moonray dependencies (I'm following the guide), I get caught on this error message:
Consolidate compiler generated dependencies of target PyOpenColorIO
[ 85%] Linking CXX executable ocioperf
[ 85%] Linking CXX executable ocioconvert
[ 88%] Built target test_gpu_exec
[100%] Built target PyOpenColorIO
/bin/ld: CMakeFiles/ociolutimage.dir/main.cpp.o: undefined reference to symbol '_ZN16OpenImageIO_v2_310ParamValue11clear_valueEv'
/bin/ld: /usr/local/lib64/libOpenImageIO_Util.so.2.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake[5]: *** [src/apps/ociolutimage/CMakeFiles/ociolutimage.dir/build.make:104: src/apps/ociolutimage/ociolutimage] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:923: src/apps/ociolutimage/CMakeFiles/ociolutimage.dir/all] Error 2
gmake[4]: *** Waiting for unfinished jobs....
/bin/ld: CMakeFiles/ocioconvert.dir/main.cpp.o: undefined reference to symbol '_ZN16OpenImageIO_v2_310ParamValue12init_noclearENS_7ustringENS_8TypeDescEiNS0_6InterpEPKvb'
/bin/ld: /usr/local/lib64/libOpenImageIO_Util.so.2.3: error adding symbols: DSO missing from command line
/bin/ld: ../../libutils/oiiohelpers/libOpenColorIOoiiohelpers.a(oiiohelpers.cpp.o): undefined reference to symbol '_ZN16OpenImageIO_v2_310ParamValue12init_noclearENS_7ustringENS_8TypeDescEiNS0_6InterpEPKvb'
/bin/ld: /usr/local/lib64/libOpenImageIO_Util.so.2.3: error adding symbols: DSO missing from command line
/bin/ld: CMakeFiles/ociodisplay.dir/main.cpp.o: undefined reference to symbol '_ZN16OpenImageIO_v2_310ParamValue11clear_valueEv'
/bin/ld: /usr/local/lib64/libOpenImageIO_Util.so.2.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
gmake[5]: *** [src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/build.make:111: src/apps/ocioconvert/ocioconvert] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:953: src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/all] Error 2
gmake[5]: *** [src/apps/ocioperf/CMakeFiles/ocioperf.dir/build.make:106: src/apps/ocioperf/ocioperf] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:1010: src/apps/ocioperf/CMakeFiles/ocioperf.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[5]: *** [src/apps/ociodisplay/CMakeFiles/ociodisplay.dir/build.make:112: src/apps/ociodisplay/ociodisplay] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:981: src/apps/ociodisplay/CMakeFiles/ociodisplay.dir/all] Error 2
gmake[3]: *** [Makefile:146: all] Error 2
gmake[2]: *** [CMakeFiles/OpenColorIO.dir/build.make:86: OpenColorIO-prefix/src/OpenColorIO-stamp/OpenColorIO-build] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:257: CMakeFiles/OpenColorIO.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
I've played around with the CMakeScripts.txt in the building/Rocky9, however I haven't found any workarounds yet.
I've done all possible compoinations of -DOCIO_BUILD_STATIC and -DBUILD_SHARED_LIBS in the OpenColorIO ExternalProjectAdd
I am using RHEL9
from openmoonray.
Whilst playing around I deleted the empty folder /include in my root drive. In doing so, I got this error.
CMake Error in tests/cpu/CMakeLists.txt:
Imported target "expat::expat" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
-
The path was deleted, renamed, or moved to another location.
-
An install or uninstall procedure did not complete successfully.
-
The installation package was faulty and references files it does not
provide.
I feel that there's something wrong with the dependencies for OpenColorIO
from openmoonray.
Found that changing CmakeLists.txt in /openmoonray/building/Rocky9 to the script below fixes the problem
# Copyright 2023-2024 DreamWorks Animation LLC
# SPDX-License-Identifier: Apache-2.0
# These ExternalProject targets can be used to download, build and
# install many of the Moonray dependencies.
# The targets are chained using dependencies so that they run
# serially.
cmake_minimum_required (VERSION 3.23.1)
project(openmoonray_third_party)
include(ExternalProject)
set(THIS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(InstallRoot /usr/local CACHE FILEPATH "Install root for dependencies")
ExternalProject_Add(JsonCpp
URL https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.5.tar.gz # 1.9.5
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS=ON
-DPYTHON_EXECUTABLE=/usr/bin/python3
-DJSONCPP_LIB_BUILD_SHARED:BOOL=ON
)
set(CHAIN JsonCpp)
ExternalProject_Add(OpenSubdiv
URL https://github.com/PixarAnimationStudios/OpenSubdiv/archive/refs/tags/v3_6_0.tar.gz # v3_6_0
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DCMAKE_BUILD_TYPE=Release
-DPYTHON_EXECUTABLE=/usr/bin/python3
-DNO_PTEX=1 -DNO_OMP=1 -DNO_TBB=1 -DNO_CUDA=1 -DNO_GLFW_X11=1 -DNO_DOC=1
-DNO_OPENCL=1 -DNO_CLEW=1 -DNO_REGRESSION=1 -DNO_EXAMPLES=1 -DNO_TUTORIALS=1 -DNO_GLTESTS=1
-DNO_MACOS_FRAMEWORK=1 -DNO_METAL=1 -DNO_TESTS=1
DEPENDS ${CHAIN}
)
set(CHAIN OpenSubdiv)
ExternalProject_Add(OpenEXR
URL https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v3.2.4.tar.gz # v3.2.4
PATCH_COMMAND patch IlmBase/Half/CMakeLists.txt ${THIS_DIR}/../Imath_include_paths.patch
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS=OFF
DEPENDS ${CHAIN}
)
set(CHAIN OpenEXR)
ExternalProject_Add(Random123
URL https://github.com/DEShawResearch/random123/archive/refs/tags/v1.14.0.tar.gz # v1.14.0
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND make install-include prefix=${InstallRoot}
DEPENDS ${CHAIN}
)
set(CHAIN Random123)
ExternalProject_Add(ISPC
URL https://github.com/ispc/ispc/releases/download/v1.24.0/ispc-v1.24.0-linux.tar.gz
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND cp bin/ispc ${InstallRoot}/bin
DEPENDS ${CHAIN}
)
set(CHAIN ISPC)
ExternalProject_Add(embree
URL https://github.com/RenderKit/embree/archive/refs/tags/v4.3.1.tar.gz # v4.3.1
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DEMBREE_ISPC_EXECUTABLE=<INSTALL_DIR>/bin/ispc
-DEMBREE_ISPC_SUPPORT=ON
-DEMBREE_IGNORE_INVALID_RAYS=ON
-DEMBREE_RAY_MASK=ON
-DEMBREE_MAX_ISA=AVX512
-DEMBREE_TUTORIALS=OFF
-DBUILD_SHARED_LIBS=ON
DEPENDS ${CHAIN}
)
set(CHAIN embree)
ExternalProject_Add(OpenColorIO
URL https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v2.3.2.tar.gz # v2.3.2
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DBUILD_SHARED_LIBS=ON
-DOCIO_BUILD_STATIC=OFF
-DOCIO_INSTALL_EXT_PACKAGES=ALL
-DCMAKE_CXX_STANDARD=17
DEPENDS ${CHAIN}
)
set(CHAIN OpenColorIO)
ExternalProject_Add(OpenImageIO
URL https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/refs/tags/v2.4.17.0.tar.gz # 2.4.17.0 (not 2.5.12.0 as not supported for EPEL 9)
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DOpenEXR_ROOT=<INSTALL_DIR>
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DUSE_QT=OFF
-DUSE_PYTHON=OFF
DEPENDS ${CHAIN}
)
set(CHAIN OpenImageIO)
ExternalProject_Add(OpenImageDenoise
URL https://github.com/OpenImageDenoise/oidn/releases/download/v2.0.1/oidn-2.0.1.src.tar.gz
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DISPC_EXECUTABLE=<INSTALL_DIR>/bin/ispc
-DTBB_ROOT=<INSTALL_DIR>
-DOIDN_APPS=OFF
DEPENDS ${CHAIN}
)
set(CHAIN OpenImageDenoise)
ExternalProject_Add(USD
URL https://github.com/PixarAnimationStudios/OpenUSD/archive/refs/tags/v22.11.tar.gz # v24.05
INSTALL_DIR ${InstallRoot}
CMAKE_ARGS
-DCMAKE_PREFIX_PATH=<INSTALL_DIR>
-DPXR_ENABLE_PYTHON_SUPPORT=ON
-DPXR_USE_PYTHON_3=ON
-DPYTHON_LIBRARIES=/usr/lib64
-DPYTHON_INCLUDE_DIRS=/usr/include
-DBoost_LIBRARY_DIR=/usr/lib64
-DBoost_INCLUDE_DIR=/usr/include
-DTBB_USE_DEBUG_BUILD=OFF
-DTBB_ROOT_DIR=/usr
-DTBB_LIBRARIES=/usr/lib64
-DTBB_INCLUDE_DIRS=/usr/include ..
-DPXR_BUILD_TESTS=OFF
-DPXR_BUILD_EXAMPLES=OFF
-DPXR_BUILD_TUTORIALS=OFF
-DPXR_BUILD_USD_TOOLS=OFF
-DPXR_ENABLE_PTEX_SUPPORT=OFF
-DPXR_ENABLE_OPENVDB_SUPPORT=OFF
-DPXR_BUILD_USDVIEW=OFF
-DBoost_NO_BOOST_CMAKE=ON
-DBoost_NO_SYSTEM_PATHS=ON
-DTBB_SUPPRESS_DEPRECATED_MESSAGES=1
DEPENDS ${CHAIN}
)
set(CHAIN USD)
Notable changes are updating OpenColorIO and OpenImageIO. I also added -DOCIO_INSTALL_EXT_PACKAGES=ALL in the OpenColorIO, and that seemed to fix the expat problem.
from openmoonray.
I reverted back to the older versions of OpenColorIO and OpenImageIO, but kept -DOCIO_INSTALL_EXT_PACKAGES=ALL
It seems that clearing /usr/local/lib, /usr/local/lib64, and /usr/local/include, and then rebuilding works perfectly.
from openmoonray.
Found that you need to remove the dependencies when rebuilding, otherwise the warning appears.
from openmoonray.
Related Issues (20)
- Cannot build on Centos-7 HOT 5
- Loading Hydra plugin into Houdini. HOT 1
- OpenImageIO path HOT 2
- Some help for you guys.
- Building Moonray for Houdini 20 (GCC11.2) HOT 6
- How can I use this for blender? HOT 2
- fatal error: scene_rdl2/render/util/AtomicFloat.h: No such file or directory 11 | #include <scene_rdl2/render/util/AtomicFloat.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HOT 2
- Rocky Linux 9 Install Dependencies Script fails in Docker HOT 1
- OpenMoonRay failing to build on Rocky Linux 9 on Docker HOT 1
- Failed to find plugin HOT 1
- Env variable not set - REZ2_DEFAULT_VERSION HOT 2
- _GLIBCXX_ASSERTIONS flag causes core dump
- Renderizador Dreamworks
- Building OpenMoonray 1.6 on MacOS+Houdini - missing preset container-macOS-houdini HOT 1
- Does Moonray require a specific class of CPU ?
- Segmentation fault rendering USD Moana Island HOT 1
- Dependency build failing on M-Series MacBook Pro with Sonoma HOT 1
- MacOS build was unable to find freetype
- moonray_gui on MacOS leaks substantial memory when orbiting camera HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmoonray.