@Nabla @ChrisBarry @badjano Try adding -L'Resources/lib' -lomp
to the line
string(APPEND PLATFORM_LINKFLAGS " /Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/Python")
in platform_apple.cmake line 211.
https://developer.blender.org/D9573 Don’t apply other changes except those said here.
After building bpy, I read that that python versions should match… and I don’t have the courage to do it again with python 3.7. For now it crashes for me with
>>> import bpy
Fatal Python error: _PyInterpreterState_Get(): no current thread state
Python runtime state: unknown
Abort trap: 6
But at least it links.
Another way is to rebuild with -DWITH_OPENMP=OFF
. Untested:
cmake ../blender -DWITH_OPENMP=OFF -C ../blender/build_files/cmake/config/bpy_module.cmake
make install -j 4