webrtc icon indicating copy to clipboard operation
webrtc copied to clipboard

Build Error in MacOS

Open kirankumar-ravuri opened this issue 2 years ago • 0 comments

Hi All,

I am trying to build the libraries in Mac with MacOS13.3.sdk.

I am getting below error

../../modules/desktop_capture/mac/screen_capturer_mac.mm:453:11: error: 'CGDisplayStreamUpdateGetRects' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new] CGDisplayStreamUpdateGetRects(updateRef, kCGDisplayStreamUpdateDirtyRects, &count);

Then I tried changing minimum supported version to -mmacosx-version-min=13.0. Then I got below error

../../sdk/objc/components/capturer/RTCCameraVideoCapturer.m:129:27: error: 'devicesWithMediaType:' is deprecated: first deprecated in macOS 10.15 - Use AVCaptureDeviceDiscoverySession instead. [-Werror,-Wdeprecated-declarations]

Would someone like to give any inputs ?

BRs Kiran

kirankumar-ravuri avatar May 12 '23 07:05 kirankumar-ravuri