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
397 stars 183 forks source link

building libwebrtc library for android fails #229

Open tku11 opened 5 years ago

tku11 commented 5 years ago

Hi,

trying to build libwebrtc library for android. After finishing gclient sync the next step (scripts/build_android.py) fails:

~/owt-client-native/src$ sudo python ./scripts/build_android.py

args: Namespace(debug=False, output_path='/home/timo/owt-client-native/src/out', target_arch='arm,arm64,x86')

generating args for arm release Traceback (most recent call last): File "./scripts/build_android.py", line 98, in gn_gen(arch, options.debug) File "./scripts/build_android.py", line 28, in gn_gen if subprocess.call(cmd) : File "/usr/lib/python2.7/subprocess.py", line 523, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Working on Ubuntu 16.04 in VirtualBox, openssl and depot tools are installed. Help is really appreciated as I'm new to native webrtc and a bit lost

jianjunz commented 5 years ago

@zhangyihui1, any idea?

zhangyihui1 commented 5 years ago

Do you use master source code ? please use branch 4.2.x for Android build

Jackoder commented 4 years ago
root@jackoder-virtual-machine:/home/jackoder/video/owt-client-native# python ./scripts/build_android.py 

> args: Namespace(debug=False, output_path='/home/jackoder/video/owt-client-native/out', target_arch='arm,arm64,x86')

> generating args for arm release
Traceback (most recent call last):
  File "./scripts/build_android.py", line 98, in <module>
    gn_gen(arch, options.debug)
  File "./scripts/build_android.py", line 28, in gn_gen
    if subprocess.call(cmd) :
  File "/usr/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
root@jackoder-virtual-machine:/home/jackoder/video/owt-client-native# git status
# On branch 4.2.x
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   .cipd/
#   .gclient
#   .gclient_entries
#   .gclient~
#   src/
nothing added to commit but untracked files present (use "git add" to track)
root@jackoder-virtual-machine:/home/jackoder/video/owt-client-native# 

I'm using the branch 4.2.x and get the same error

Jackoder commented 4 years ago

add the depot_tools to PATH, it resolved