Unable to compile on macOS 10.14

limzykenneth

New Member
I'm having problem compiling OBS Studio from source on macOS 10.14. It fails at the make step. Below is the partial console output of the step, it throws many of the similar errors:

Code:
In file included from /Users/kennethlim/Documents/obs-studio/libobs/obs-cocoa.m:28:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h:29:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h:43:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:28:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:182:82: error:
      expected ','
  ...macos(10.3, 10.14)) API_UNAVAILABLE(ios, tvos, watchos, macCatalyst);
                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:93:114: note:
      expanded from macro 'API_UNAVAILABLE'
  ...__API_UNAVAILABLE5, __API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILA...
                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [libobs/CMakeFiles/libobs.dir/util/platform-cocoa.m.o] Error 1
20 errors generated.
make[2]: *** [libobs/CMakeFiles/libobs.dir/obs-cocoa.m.o] Error 1
make[1]: *** [libobs/CMakeFiles/libobs.dir/all] Error 2
make: *** [all] Error 2

I am on macOS Mojave 10.14.6 and Xcode 11.3.1. I've followed the build steps outlined here. For unrelated reasons upgrading to macOS 10.15 is not an option for me.

Let me know if more information is needed. Thanks!
 
Top