Need Help: cannot build chromium on mac, got fatal error: "fatal error: 'ScreenCaptureKit/ScreenCaptureKit.h' file not found"

326 views
Skip to first unread message

Aweffr Le

unread,
Aug 4, 2022, 8:45:21 PM8/4/22
to Chromium-dev
I'm trying to change a little code in webrtc for experiement...(for electron)

following the dev guide from https://www.electronjs.org/docs/v14-x-y/development/build-instructions-gn, I succeed to sync the source code and run through all the hooks.

the git branch tells me that current src is on chromium v105

at the final step:
"gn gen out/Testing --args="import(\"//electron/build/args/testing.gn\")""
"ninja -C out/Testing electron"

the compile procedure stuck at this error and I cannot find any way to solve it:

FAILED: obj/content/browser/browser/screen_capture_kit_device_mac.o
../../content/browser/media/capture/screen_capture_kit_device_mac.mm:7:9: fatal error: 'ScreenCaptureKit/ScreenCaptureKit.h' file not found
#import <ScreenCaptureKit/ScreenCaptureKit.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.



My mac environment:
MacBook Pro 16-inch, 2019
macOS Montery 12.4
XCode: 13.2.1

python env:
python2 & python3 installed from anaconda
(py27) aweffr@ZLdeMacBook-Pro ~ % which python
/Users/aweffr/anaconda3/envs/py27/bin/python
(py27) aweffr@ZLdeMacBook-Pro ~ % which python3
/Users/aweffr/anaconda3/bin/python3


Takuto Ikuta

unread,
Aug 4, 2022, 9:04:43 PM8/4/22
to awe...@foxmail.com, Chromium-dev
Not sure, but your xcode version is a bit old to use that header file?

--
--
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/cb8d380a-7177-416d-8045-ccf4de8ff108n%40chromium.org.

Nico Weber

unread,
Aug 5, 2022, 9:01:53 AM8/5/22
to Takuto Ikuta, awe...@foxmail.com, Chromium-dev

Avi Drissman

unread,
Aug 5, 2022, 12:40:53 PM8/5/22
to Nico Weber, Takuto Ikuta, awe...@foxmail.com, Chromium-dev
That is a very old document.


Xcode. The exact version needed depends on what branch you are building, but the latest version of Xcode is generally a good bet for building main.

You will need an up-to-date Xcode.

(It turns out that the old link is the main result for "electron build instructions" but I informed the Electron folks.)
 

Reply all
Reply to author
Forward
0 new messages