libmediasoupclient icon indicating copy to clipboard operation
libmediasoupclient copied to clipboard

Client cannot be built on an M1 chip Mac.

Open ethand91 opened this issue 2 years ago • 3 comments

Link: https://mediasoup.org/documentation/v3/libmediasoupclient/installation/#Build-Examples

OSX Version: 11.6

After checking out the m84 branch and then running "gclient sync" command the following error occurs:

________ running 'cipd ensure -log-level error -root /Users/ethan/Documents/webrtc/webrtc-ios -ensure-file /var/folders/1v/xptt3zf91yg30qhgbrhbg6f80000gn/T/tmpclwu94za.ensure' in '.'
Errors:
  failed to resolve infra/tools/luci/isolate/mac-arm64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 10): no such tag
  failed to resolve infra/tools/luci/isolated/mac-arm64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 11): no such tag
  failed to resolve infra/tools/luci/swarming/mac-arm64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 12): no such tag
Error: Command 'cipd ensure -log-level error -root /Users/ethan/Documents/webrtc/webrtc-ios -ensure-file /var/folders/1v/xptt3zf91yg30qhgbrhbg6f80000gn/T/tmpclwu94za.ensure' returned non-zero exit status 1
Errors:
  failed to resolve infra/tools/luci/isolate/mac-arm64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 10): no such tag
  failed to resolve infra/tools/luci/isolated/mac-arm64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 11): no such tag
  failed to resolve infra/tools/luci/swarming/mac-arm64@git_revision:56ae79476e3caf14da59d75118408aa778637936 (line 12): no such tag

I know this is not fully related to mediasoup but it makes it not possible to build the libmediasoupclient on a mac with an M1 chip.

Anyone know a workaround or will the library need to be built with a newer branch of webrtc? (no issues when syncing with the laster branch).

ethand91 avatar Nov 18 '21 07:11 ethand91

Have you tried using webrtc m94? libmediasoupclient was just updated to support it

ahmouse15 avatar Dec 04 '21 21:12 ahmouse15

I was able to build using master on m1.

GEverding avatar Jan 05 '22 20:01 GEverding

m94 fails with:

FAILED: WebRTC.framework/Info.plist
rm -rf WebRTC.framework/Info.plist && /bin/cp -Rc gen/sdk/framework_objc_info_plist.plist WebRTC.framework/Info.plist
cp: WebRTC.framework/Info.plist: clonefile failed: Operation not supported

(non mediasoup issue)

ethand91 avatar Jan 07 '22 06:01 ethand91

If this issue persists please ask in the forum.

jmillan avatar Nov 03 '23 15:11 jmillan