Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build webrtc by android studio #226

Open
microIBM opened this issue May 20, 2017 · 1 comment
Open

how to build webrtc by android studio #226

microIBM opened this issue May 20, 2017 · 1 comment

Comments

@microIBM
Copy link

i had download all the source code by the webrtc-build-script. and i can buid_webrtc successfully. but i want to import the project into android studio. what should i do? i follow the guide from this link "https://webrtc.org/native-code/android/", execute command "build/android/gradle/generate_gradle.py --output-directory $PWD/out/Debug \ --target "//webrtc/examples:AppRTCMobile" --use-gradle-process-resources \ --split-projects". but it has errors like this:

build/android/gradle/generate_gradle.py --output-directory $PWD/out_android_arm/Release --target "//webrtc/examples:AppRTCMobile" --use-gradle-process-resources --split-projects
W 0.000s Main Creating project at: /home/haoxihuan/workspace/webrtc-build-scripts/android/webrtc/src/out_android_arm/Release/gradle
W 0.001s Main Building .build_config files...
['ninja', '-C', '/home/haoxihuan/workspace/webrtc-build-scripts/android/webrtc/src/out_android_arm/Release', '-j1000', 'webrtc/examples:AppRTCMobile__build_config']
Traceback (most recent call last):
File "build/android/gradle/generate_gradle.py", line 828, in
main()
File "build/android/gradle/generate_gradle.py", line 756, in main
_RunNinja(output_dir, [e.NinjaBuildConfigTarget() for e in main_entries])
File "build/android/gradle/generate_gradle.py", line 108, in _RunNinja
subprocess.check_call(cmd)
File "/usr/lib/python2.7/subprocess.py", line 536, in check_call
retcode = call(*popenargs, **kwargs)
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

@microIBM
Copy link
Author

sorry, my mistake. after i export depot_tools into PATH, i can build the gradle project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant