Compile blender in OSX

Hello! I’m trying to compile blender with “make” command and following wiki file, but I get an error at the end and I don’t know how to solve it.

https://take.ms/EkxrL

Downloads

Any help?

Could you add system info(macOS version, gcc --version, Xcode’s version) and the error in text form? There’s a button to upload text too.

Yes:

gcc --version:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1

Apple LLVM version 10.0.0 (clang-1000.11.45.5)

Target: x86_64-apple-darwin17.7.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


Error:

Undefined symbols for architecture x86_64:
“_LZ4_compressHC2_limitedOutput”, referenced from:
_blosc_c in libblosc.a(blosc.c.o)
“_LZ4_compress_limitedOutput”, referenced from:
_blosc_c in libblosc.a(blosc.c.o)
“_LZ4_decompress_fast”, referenced from:
_blosc_d in libblosc.a(blosc.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [bin/Blender.app/Contents/MacOS/Blender] Error 1
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

If you run make update and make again it should work, there was a temporary issue in the libraries that caused this problem.

@brecht shouldn’t the --with-gxx-include-dir=/usr/include/c++/4.2.1 point to “/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1” or are they the same?

Ok, now works correctly!. I was become crazy…