Error while building chromium on MAC

233 views
Skip to first unread message

Jugnu Singh

unread,
Sep 28, 2023, 5:49:56 AM9/28/23
to Chromium-dev
From two days, I am trying to build the chromium on my mac but getting below two error

1.                                                          

../../third_party/webrtc/modules/desktop_capture/mac/screen_capturer_mac.mm:500:5: error: 'CGDisplayStreamStop' is only available on macOS 13.0 or newer [-Werror,-Wunguarded-availability-new]

  500 |     CGDisplayStreamStop(stream);

      |     ^~~~~~~~~~~~~~~~~~~


This I was able to resolved using - https://stackoverflow.com/a/76600431/1664430

Once this got solved, getting below error
2. 
"../../media/base/mac/video_capture_device_avfoundation_helpers.mm:29:51: error: use of undeclared identifier 'AVCaptureDeviceTypeExternal'

   29 |           [captureDeviceTypes arrayByAddingObject:AVCaptureDeviceTypeExternal];

      |                                                   ^

1 error generated.


I have made no changes to code based and just checkout the code using "fetch chromium". I followed - https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md

My mac configuration : ProductName: macOS, ProductVersion: 13.5.2, BuildVersion: 22G91


Please let me know if there is an existing bug for this or something I am doing wrong

Tình Nguyễn Hữu

unread,
Sep 28, 2023, 6:22:11 AM9/28/23
to jpsrag...@gmail.com, Chromium-dev
Update your OS and xcode

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/d3a424e8-f0d0-4154-b305-56c6675a1822n%40chromium.org.

Maxim Manylov

unread,
Nov 27, 2023, 4:20:12 PM11/27/23
to Chromium-dev, Tình Nguyễn Hữu, Chromium-dev, jpsrag...@gmail.com
I have same issue.
I've updated os and xcode, first to macos 13.5, then to macOs 14.1

ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs output:
MacOSX.sdk     MacOSX13.3.sdk MacOSX13.sdk

Nico Weber

unread,
Nov 27, 2023, 7:43:00 PM11/27/23
to man...@gmail.com, Chromium-dev, Tình Nguyễn Hữu, jpsrag...@gmail.com
We had a workaround for this in place, but we removed it in https://webrtc-review.googlesource.com/c/src/+/320820 due to the MacOSX14 SDK fixing the system headers.

You still have the MacOSX13.4 SDK. That's too old. Try updating Xcode again. (And open it once after updating it.)

Reply all
Reply to author
Forward
0 new messages