open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
394 stars 182 forks source link

iOS sdk build build.py faile #363

Closed xiuminga closed 4 years ago

xiuminga commented 4 years ago

OS: ubuntu:18.04 and 16:04

  1. git clone the code checkout 4.3.x
  2. gclient sync,
  3. exec scripts/build.py, log out:

root@vultr:/home/src# gclient sync Running depot tools as root is sad. Warning: Running gclient on Python 3. If you encounter any issues, please file a bug on crbug.com under the Infra>SDK component. Syncing projects: 100% (37/37), done.
Running hooks: 100% (23/23)
____ running 'vpython src/scripts/prepare_dev.py' in '/home' Applying: Use OpenSSL for usrsctp Applying: Use OpenSSL for libsrtp Applying: Remove webrtc_overrides Applying: Fixed compile issue and disable thin archive for Linux Applying: Fix examples path error Applying: Export WebRTC symbols on iOS. Applying: Apply libjpeg_turbo fix for CVE-2018-20330 & CVE-2018-19664 Applying: Remove unused gni for av1 build Applying: Fix missing ffmpeg configure item for msvc build Running hooks: 100% (23/23), done. root@vultr:/home/src# python scripts/build.py ERROR at //build/config/ios/ios_sdk.gni:115:21: Script returned non-zero exit code. _ios_sdk_result = exec_script(script_name, ios_sdk_info_args, "scope") ^---------- Current dir: /home/src/out/Debug-device-arm64/ Command: python /home/src/build/config/mac/sdk_info.py --get_sdk_info iphoneos Returned 1. stderr:

Traceback (most recent call last): File "/home/src/build/config/mac/sdk_info.py", line 158, in FillMachineOSBuild(settings) File "/home/src/build/config/mac/sdk_info.py", line 75, in FillMachineOSBuild '-buildVersion']).strip() File "/usr/lib/python2.7/subprocess.py", line 216, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 394, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

See //build/config/sysroot.gni:74:5: whence it was imported. import("//build/config/ios/ios_sdk.gni") ^-------------------------------------- See //third_party/webrtc/webrtc.gni:12:1: whence it was imported. import("//build/config/sysroot.gni") ^---------------------------------- See //BUILD.gn:4:1: whence it was imported. import("third_party/webrtc/webrtc.gni") ^-------------------------------------

jianjunz commented 4 years ago

Hi,

Building iOS SDK on Ubuntu is not supported. Please run it on macOS. Thanks.

xiuminga commented 4 years ago

Thanks It working on the MacOS