I am trying to setup and build Blender on a Mac Book Air M1 following the wiki guide
I could successfully update with make update
but when I try to run make
I get the following error:
CMake Error at build_files/cmake/platform/platform_apple.cmake:75 (message):
Mac OSX requires pre-compiled libs at:
'/Users/user/Programming/blender-git/blender/../lib/darwin_arm64'
I have not found any working solution so far. Thank you in advance.
You can grab the libs required manually using svn co https://svn.blender.org/svnroot/bf-blender/trunk/lib/darwin_arm64/
however make update
should have done this for you.
What is the exact output when you run make update
?
My make update
Updating Precompiled Libraries and Tests
svn --non-interactive cleanup /Users/user/Programming/blender-git/blender/../lib/darwin
svn --non-interactive switch https://svn.blender.org/svnroot/bf-blender/trunk/lib/darwin /Users/user/Programming/blender-git/blender/../lib/darwin
At revision 63070.
svn --non-interactive update /Users/user/Programming/blender-git/blender/../lib/darwin
Updating '/Users/user/Programming/blender-git/lib/darwin':
At revision 63070.
Updating Blender Git Repository
git pull --rebase
remote: Enumerating objects: 484, done.
remote: Counting objects: 100% (341/341), done.
remote: Compressing objects: 100% (187/187), done.
remote: Total 187 (delta 164), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (187/187), 31.35 KiB | 7.84 MiB/s, done.
Resolving deltas: 100% (164/164), completed with 80 local objects.
From https://git.blender.org/blender
26f181c6b7b..e7a6917617f master -> origin/master
4455b28ab36..b048c444943 asset-lite-greasepencil -> origin/asset-lite-greasepencil
350944133ff..ebbfaa0423f gpencil-new-data-proposal -> origin/gpencil-new-data-proposal
e3ab75d17d6..2c3ee8854f3 temp-gpencil-automask -> origin/temp-gpencil-automask
Updating 26f181c6b7b..e7a6917617f
Fast-forward
CMakeLists.txt | 30 +++-----
build_files/cmake/Modules/FindOpenSubdiv.cmake | 15 ----
build_files/cmake/Modules/FindSYCL.cmake | 16 +++-
build_files/cmake/config/blender_full.cmake | 4 +-
build_files/cmake/config/blender_release.cmake | 4 +-
build_files/cmake/macros.cmake | 18 ++++-
build_files/cmake/platform/platform_apple.cmake | 89 ++++-----------------
build_files/cmake/platform/platform_unix.cmake | 205 +++++++++++++------------------------------------
build_files/cmake/platform/platform_win32.cmake | 72 ++++++-----------
build_files/windows/svn_update.cmd | 24 ++++++
intern/cycles/CMakeLists.txt | 6 +-
intern/cycles/cmake/external_libs.cmake | 56 +++++++-------
intern/cycles/device/CMakeLists.txt | 9 ++-
intern/cycles/device/oneapi/device.cpp | 4 +-
intern/cycles/device/oneapi/device_impl.cpp | 42 +++-------
intern/cycles/kernel/CMakeLists.txt | 16 ++--
intern/cycles/kernel/device/gpu/parallel_active_index.h | 33 ++------
intern/cycles/kernel/device/oneapi/compat.h | 45 +++--------
intern/cycles/kernel/device/oneapi/globals.h | 9 ---
intern/cycles/kernel/device/oneapi/kernel.cpp | 7 --
intern/ghost/intern/GHOST_WindowWayland.cpp | 7 +-
intern/opensubdiv/CMakeLists.txt | 6 --
make.bat | 10 ++-
release/scripts/modules/gpu_extras/batch.py | 4 +-
release/scripts/modules/sys_info.py | 1 +
source/blender/editors/transform/transform_constraints.c | 15 ++--
source/blender/gpu/intern/gpu_framebuffer_private.hh | 5 --
source/blender/gpu/intern/gpu_shader_builder.cc | 2 +-
source/blender/gpu/shaders/compositor/compositor_blur.glsl | 21 +++--
source/blender/gpu/shaders/compositor/compositor_blur_variable_size.glsl | 21 +++--
source/blender/gpu/shaders/gpu_shader_icon_frag.glsl | 8 +-
source/blender/python/gpu/gpu_py_platform.c | 27 +++++++
32 files changed, 324 insertions(+), 507 deletions(-)
create mode 100644 build_files/windows/svn_update.cmd
Updating Submodules
git fetch origin
remote: Enumerating objects: 50, done.
remote: Counting objects: 100% (50/50), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 35 (delta 25), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (35/35), 5.20 KiB | 166.00 KiB/s, done.
From https://git.blender.org/blender-addons
ae3d53a7..9d903a93 master -> origin/master
git pull --rebase origin master
From https://git.blender.org/blender-addons
* branch master -> FETCH_HEAD
Updating ae3d53a7..9d903a93
Fast-forward
io_scene_gltf2/__init__.py | 47 +++++++++++++++++++++++++++++++++++++++++++----
io_scene_gltf2/blender/com/gltf2_blender_conversion.py | 3 +++
io_scene_gltf2/blender/exp/gltf2_blender_gather_cameras.py | 18 ++++++++++++++----
io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py | 24 +++++++++++++++++++++---
io_scene_gltf2/blender/imp/gltf2_blender_camera.py | 2 +-
io_scene_gltf2/blender/imp/gltf2_blender_gltf.py | 4 ++++
io_scene_gltf2/blender/imp/gltf2_blender_light.py | 37 ++++++++++++++++++++++++++++++++-----
io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | 4 ++++
io_scene_gltf2/blender/imp/gltf2_blender_pbrMetallicRoughness.py | 2 +-
9 files changed, 123 insertions(+), 18 deletions(-)
git fetch origin
git pull --rebase origin master
From https://git.blender.org/blender-addons-contrib
* branch master -> FETCH_HEAD
Already up to date.
git fetch origin
git pull --rebase origin master
From https://git.blender.org/blender-translations
* branch master -> FETCH_HEAD
Already up to date.
git fetch origin
git pull --rebase origin master
From https://git.blender.org/blender-dev-tools
* branch master -> FETCH_HEAD
Already up to date.
Ok, I’ll try manually. Thank you!
brecht
October 21, 2022, 6:21pm
#4
Are you maybe running an x86-64 version of Python, instead of a a native Arm one?
It’s possible because I’ve noticed that make update
is installing on this path /Users/uer/Programming/blender-git/lib/darwin/opencollada/include/COLLADAStreamWriter/COLLADASWShader.h
and it should be on /Users/uer/Programming/blender-git/lib/darwin_arm64/opencollada/include/COLLADAStreamWriter/COLLADASWShader.h
brecht
October 21, 2022, 6:43pm
#6
This can happen if you migrate files from an Intel Mac for example, and some Python install comes along with it.
We should fix the test to not depend on the Python executable architecture.
Anyway it is weird. This is my first mac and I have not migrated files. Thanks for the help
Finally I could compile. I removed the darwin folder in lib and there I used svn co https://svn.blender.org/svnroot/bf-blender/trunk/lib/darwin_arm64/
. Then with make
everything seems to work fine. Thank you!