how to build webrtc framework for macOS?

1,041 views
Skip to first unread message

prest...@gmail.com

unread,
Jun 18, 2018, 4:15:27 AM6/18/18
to discuss-webrtc
fetch --nohooks webrtc_ios

gclient sync -r branchID

gn gen out/mac_release --args='target_os="mac" target_cpu="x64"  is_build_compoent=false'

ninja -C out/mac_release rtc_sdk_objc


I try to compile webrtc framework for macOS by these orders ,but I can't get correct result !. plz help! ! ! 

Alexandre GOUAILLARD

unread,
Jun 18, 2018, 4:45:12 AM6/18/18
to discuss...@googlegroups.com
hi preston,

those are the commands for iOS, not MacOS.

if you are compiling on a mac for a mac, this should be enough:

fetch webrtc
gclient sync
gn gen out/mac_release --args='is_debug=false'
ninja -C out/mac_release rtc_sdk_objc



--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/d03bebf2-1916-4572-8c72-cfc03f890d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
President - CoSMo Software Consulting, Singapore
------------------------------------------------------------------------------------

Pavlo K.

unread,
Jun 25, 2018, 8:59:59 AM6/25/18
to discuss-webrtc
Alexandre, 
thanks for your reply, but there is an issue with compiling (webrtc v.68):

> gn gen out/mac_release --args='is_debug=false'
Done. Made 752 targets from 167 files in 4897ms
> ninja -C out/mac_release rtc_sdk_objc
ninja: Entering directory `out/mac_release'
ninja: error: unknown target 'rtc_sdk_objc'

Nowadays, it seem the framework can't be compiled for Mac, according to:

On Monday, June 18, 2018 at 11:45:12 AM UTC+3, Alexandre GOUAILLARD wrote:
hi preston,

those are the commands for iOS, not MacOS.

if you are compiling on a mac for a mac, this should be enough:

fetch webrtc
gclient sync
gn gen out/mac_release --args='is_debug=false'
ninja -C out/mac_release rtc_sdk_objc


On Thu, Jun 14, 2018 at 6:38 AM, <prest...@gmail.com> wrote:
fetch --nohooks webrtc_ios

gclient sync -r branchID

gn gen out/mac_release --args='target_os="mac" target_cpu="x64"  is_build_compoent=false'

ninja -C out/mac_release rtc_sdk_objc


I try to compile webrtc framework for macOS by these orders ,but I can't get correct result !. plz help! ! ! 

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Patrik Höglund

unread,
Aug 6, 2018, 2:47:09 AM8/6/18
to discuss-webrtc
Yeah, we don't have anyone scheduled to work on MacOS frameworks for now, so patches are welcome on that bug!

/ P

Saïd BENAISSA

unread,
Oct 23, 2020, 6:39:58 PM10/23/20
to discuss-webrtc
macOS and Linux:
gn gen out/Release "--args=is_debug=false" 
gn gen out/Debug "--args=is_debug=true" 

ninja -v -C out/Release 
ninja -v -C out/Debug
Reply all
Reply to author
Forward
0 new messages