Compiling Cycles Standalone from Blender 2.82a sources failed

I got this error after running “make cycles”:

Could NOT find PythonLibsUnix (missing: PYTHON_LIBRARY PYTHON_LIBPATH PYTHON_INCLUDE_DIR PYTHON_INCLUDE_CONFIG_DIR)

I could fix this by adding these lines to build_linux_cycles/CMakeCache.txt:

set(WITH_PYTHON OFF CACHE BOOL “” FORCE)
set(WITH_PYTHON_MODULE OFF CACHE BOOL “” FORCE)

Compiled again, now got this error:

WITH_MOD_OCEANSIM requires WITH_FFTW3 to be ON

I could fix this by adding this line to build_linux_cycles/CMakeCache.txt:

set(WITH_MOD_OCEANSIM OFF CACHE BOOL “” FORCE)

Compiled again, but now got an error during linking:

cannot find -lbf_intern_glew_mx
cannot find -lbf_intern_guardedalloc
cannot find -lbf_intern_numaapi
cannot find -lextern_glog
cannot find -lextern_gflags

Only these libraries were created:

libcycles_bvh.a
libcycles_device.a
libcycles_graph.a
libcycles_kernel.a
libcycles_render.a
libcycles_subd.a
libcycles_util.a
libextern_clew.a
libextern_cuew.a
libextern_glew.a

What do I have to add to any of the configuration files to compile the missing libraries?

Have you followed the build instructions to install essential packages and download libraries?
https://wiki.blender.org/wiki/Building_Blender/Linux

I installed both the essential packages and the downloaded libraries, but this didn’t solve the problem.

All missing libraries are part of the blender source code, but “make cycles” doesn’t compile them. I think that there are some dependencies missing. These are the directories with the sources:

blender-2.82a/intern/glew-mx/
blender-2.82a/intern/guardedalloc/
blender-2.82a/intern/numaapi/
blender-2.82a/extern/gflags/
blender-2.82a/extern/glog/

I’m having the same issue with latest 2.90 branch. No idea how to solve it though :frowning: