WebRTC M111 MacOS native build failed

975 views
Skip to first unread message

Artiom Khachaturian

unread,
Mar 6, 2023, 1:19:21 AM3/6/23
to discuss-webrtc
Command line is quite simple:
gn gen ./webrtc/src/out/Debug-x64 --args='treat_warnings_as_errors=false is_clang=true rtc_include_tests=false rtc_build_examples=false is_debug=true enable_iterator_debugging=true is_component_build=false target_cpu="x64"  use_rtti=true use_custom_libcxx=false enable_dsyms=true rtc_build_tools=false treat_warnings_as_errors=false fatal_linker_warnings=false --ide='xcode'

but always failed:

depot_tools/ninja.py: Could not find Ninja in the third_party of

the current project, nor in your PATH

The same command line works fine with M109, I'm using latest version of depot tools, any minds?

Artiom Khachaturian

unread,
Mar 6, 2023, 1:43:18 AM3/6/23
to discuss-webrtc
I found that ninja version was changed between releases from 'version:2...@1.8.2.chromium.3' to version:2...@1.11.1.chromium.6

陳宣甫

unread,
Mar 11, 2023, 3:31:17 AM3/11/23
to discuss-webrtc
Hi Artiom,

I have same problem.

depot_tools/ninja.py: Could not find Ninja in the third_party of the current project, nor in your PATH.
Please take a following action to install Ninja.
- If your project has DEPS, Add a CIPD Ninja dependency to DEPS.
- Otherwise, add Ninja to your PATH *after* depot_tools.

Have you solved the problem? Could you teach me thy ways how to solve it?

Thanks.
Artiom Khachaturian 在 2023年3月6日 星期一下午2:43:18 [UTC+8] 的信中寫道:

Artiom Khachaturian

unread,
Mar 11, 2023, 4:59:33 AM3/11/23
to discuss-webrtc
I'm fixed this issue via installation of external ninja package, you can use brew for that: 
https://formulae.brew.sh/formula/ninja

陳宣甫

unread,
Mar 11, 2023, 6:41:49 AM3/11/23
to discuss-webrtc
I'm fixed this issue via installation of ninja website.
Thanks.


Artiom Khachaturian 在 2023年3月11日 星期六下午5:59:33 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages