Apple Silicon Support

1,257 views
Skip to first unread message

Duff

unread,
Oct 28, 2020, 3:50:13 AM10/28/20
to discuss-webrtc
I'd like to build webrtc to work on Apple Silicon. Currently I am getting build error during compilation saying that ARM_NEON is not defined.

Has anyone been able to build the project for arm64 on macOS? Are there plans to support Apple Silicon?

James Inkster

unread,
Nov 24, 2020, 4:09:50 PM11/24/20
to discuss-webrtc
I'm curious, too!
Did you make any progress or hear from anyone about this?

Philipp Hancke

unread,
Nov 24, 2020, 4:34:58 PM11/24/20
to discuss...@googlegroups.com
this will likely depend on the same build infra as chromium. See https://chromium.googlesource.com/chromium/src/+/master/docs/mac_arm64.md#building-on-arm-macs for notes and the tracking bug there.

--

---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/3df70222-2d8b-4e6d-8c78-6011961328d6n%40googlegroups.com.

Gieta Laksmana

unread,
Nov 25, 2020, 5:40:10 PM11/25/20
to discuss-webrtc

I'm able to build one with Xcode 12.2 on an intel iMac pro with macOS Catalina 10.15.7

I added this on the gn command, then run ninja as shown on :
gn gen out/mac_release_arm64 --args='is_debug=false target_cpu="arm64"' --ide=xcode
ninja -C out/mac_release_arm64 mac_framework_objc

lipo -info out/mac_release_arm64/WebRTC.framework/Versions/A/WebRTC
Non-fat file: out/mac_release_arm64/WebRTC.framework/Versions/A/WebRTC is architecture: arm64

next I just manually combine this with the x86 version of the framework with lipo -create to make a universal fat binary
On Wednesday, October 28, 2020 at 12:50:13 AM UTC-7 davidetha...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages