Hi guys and gals, I’m currently writing a small application and I want to integrate Cycles into it. I added some cmake to fetch the repository and also add precompiled dependencies. I try to mimic what is written in the diffusion of Cycles. I fetch the repository then place the dependencies in the lib folder next to Cycles source. The structure is as follows on my computer:
repo
|
+--- build
|
+--- _deps
|
+---cycles-build
|
+--- cycles-src
| |
| +--- examples
| |
| +--- src
| ...
|
+--- cycles-subbuild
|
+--- lib
|
+--- linux_centos7_x86_64
|
+--- alembic
|
+--- blosc
|
+--- boost
...
I’m using the following cmake to do so:
# first declare cycles and get properties
set(NAME cycles)
FetchContent_Declare(
${NAME}
GIT_REPOSITORY git://git.blender.org/cycles.git
GIT_TAG v1.11.0
)
set(${NAME}_POP 0)
FetchContent_GetProperties(
${NAME}
POPULATED ${NAME}_POP
)
# then populate, get dependencies and add cycles to cmake
if(NOT ${NAME}_POP)
FetchContent_Populate(${NAME})
# checkout dependencies of cycles
file(MAKE_DIRECTORY ${${NAME}_SOURCE_DIR}/../lib)
execute_process(COMMAND svn checkout -r 62534 https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/ WORKING_DIRECTORY ${${NAME}_SOURCE_DIR}/../lib)
add_subdirectory(${${NAME}_SOURCE_DIR} ${${NAME}_BINARY_DIR})
endif()
Upon running cmake on my project I get the following error: Could NOT find OpenImageIO
.
I searched in the Cycles repository for the path linux_centos7_x86_64 but cannot find it.
- How is this then implemented?
- Is it even possible to use these precompiled binaries?
Any help appreciated! Thanks in advance.