webrtc-sdk / webrtc

BSD 3-Clause "New" or "Revised" License
245 stars 96 forks source link

Build Error in MacOS #69

Open kirankumar-ravuri opened 1 year ago

kirankumar-ravuri commented 1 year ago

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