I have been compiling Blender under macOS for some time now. A few days ago building Blender using “make update – make full” started to fail. I deleted the whole repository and reloaded it again. I also tried to compile Blender with XCode, but that fails as well.
What can I do to tackle this issue?
These are the last lines of output before I get the error message:
[ 24%] Linking C static library ../../../../lib/libbf_editor_gizmo_library.a
[ 25%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_lib.c.o
[ 25%] Built target bf_editor_gizmo_library
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/fmodifier_ui.c.o
[ 25%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_select.c.o
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_draw.c.o
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_edit.c.o
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_general.c.o
[ 25%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_slide.c.o
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframing.c.o
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyingsets.c.o
[ 25%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_transform.c.o
[ 25%] Building C object source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/pose_utils.c.o
[ 25%] Building C object source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/time_scrub_ui.c.o
[ 25%] Linking C static library ../../../../lib/libbf_editor_armature.a
[ 25%] Built target bf_editor_armature
[ 25%] Linking C static library ../../../../lib/libbf_editor_animation.a
[ 25%] Linking C static library ../../../../lib/libbf_editor_curve.a
[ 25%] Built target bf_editor_curve
[ 25%] Built target bf_editor_animation
make[1]: *** [all] Error 2
make: *** [all] Error 2
I also looked in the generated log files, but I could not find any helpful information.
That is a generic error message, something like File Not Found, if memory serves.
You need to look in the log and find that actual error, not the summary.
let’s start from the beginning.
create an empty folder, (if you’re at defaults run cd ~/blender-build first) mkdir crash_build cd crash_build cmake ../blender make -j 1 install
@ankitm it seems to be using the wrong zlib library (from opencollada), probably after your recent changes.
I’m not sure why ZLIB_ROOT is not working. A solution could be to move the zlib detection before CMAKE_PREFIX_PATH is set, or to just not use the find module.
You don’t know for sure until @Chris or anyone else with the issue tests it. Moving the zlib detection before setting CMAKE_PREFIX_PATH should stop it from looking in the opencollada directory though.
We should not start depending on homebrew libraries. All library dependencies should be in lib/darwin.
@Chris please run the build process again, I just pushed a commit. Also please share the logs like before, they’re helpful.
You may also uninstall the brew’s libraries, since they’re not symlinked to /usr/local (which is good!), and no program will ever be able to find them.
==> Caveats
zlib is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
I then removed the local repository. I downloaded the repository again and checked, whether your fix is present.
I ran “make update” and “make full”.
These were the final lines of the output (of “make full”):
[ 35%] Linking CXX static library …/…/lib/libextern_ceres.a
[ 35%] Built target extern_ceres
make[1]: *** [all] Error 2
make: *** [all] Error 2