[Bf-committers] Compile Error on macOS 10.14 and Xcode 10

Michael Sheaver msheaver at me.com
Wed Jul 4 22:49:26 CEST 2018


I found a compile error that you all might want to know about, and a workaround for it, as well.

Here is my environment:
macOS: 10.14 Beta (18A326g)
Xcode:10.0 beta 3 (10L201y)
Build: blender2.8 (53c63db2ee1bd544384840915c7f562819a7dbbc)

At the end of the make process, it comes up with the following:

Scanning dependencies of target blender
make[3]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenAL.framework', needed by `bin/blender.app/Contents/MacOS/blender'.  Stop.
make[3]: *** Waiting for unfinished jobs....
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

I went into the SDK folder:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs

…and sure enough, the expected folder is missing:
drwxr-xr-x  6 michaelsheaver  staff   192B Jun 28 06:55 MacOSX.sdk
lrwxr-xr-x  1 michaelsheaver  staff    10B Jul  4 02:05 MacOSX10.14.sdk -> MacOSX.sdk

Workaround

I created a symlink to add the expected folder:
drwxr-xr-x  6 michaelsheaver  staff   192B Jun 28 06:55 MacOSX.sdk
lrwxr-xr-x  1 michaelsheaver  staff    10B Jul  4 16:24 MacOSX10.13.sdk -> MacOSX.sdk
lrwxr-xr-x  1 michaelsheaver  staff    10B Jul  4 02:05 MacOSX10.14.sdk -> MacOSX.sdk

Then I reran the make update and make, and it now compiles correctly:
edit build configuration with: /Users/michaelsheaver/blender-build/build_darwin/CMakeCache.txt run make again to rebuild.
Blender successfully built, run from: /Users/michaelsheaver/blender-build/build_darwin/bin/blender

I do hope that this is helpful for you all.

Take care,
Michael


More information about the Bf-committers mailing list