Build error with latest webrtc code for android on ubuntu 64

288 views
Skip to first unread message

yang

unread,
Feb 27, 2014, 9:20:47 PM2/27/14
to discuss...@googlegroups.com
Hi~
I am trying to build the latest webrtc code for android on ubuntu and met some problems 
I followed the Android specific build steps mentioned here: http://www.webrtc.org/reference/getting-started
When executing "ninja -C out/Debug" I got the following error logs
I have install the jdk1.6 and set up the java path
Any help would be greatly appreicated!

ninja: Entering directory `out/Debug'
ninja: warning: premature end of file; recovering
[44/1172] ACTION Creating audio_device_module_java jar.TOC
FAILED: cd ../../webrtc/modules; python ../../build/android/gyp/jar_toc.py "--jar-path=../../out/Debug/lib.java/audio_device_module_java.jar" "--toc-path=../../out/Debug/lib.java/audio_device_module_java.jar.TOC" "--ignore=9696e649541724f984453eb4894beda3  -"
Traceback (most recent call last):
  File "../../build/android/gyp/jar_toc.py", line 110, in <module>
    sys.exit(main(sys.argv))
  File "../../build/android/gyp/jar_toc.py", line 103, in main
    DoJarToc(options)
  File "../../build/android/gyp/jar_toc.py", line 87, in DoJarToc
    input_paths=[jar_path],
  File "/home/yang/trunk/build/android/gyp/util/md5_check.py", line 25, in CallAndRecordIfStale
    function()
  File "../../build/android/gyp/jar_toc.py", line 85, in <lambda>
    lambda: UpdateToc(jar_path, toc_path),
  File "../../build/android/gyp/jar_toc.py", line 73, in UpdateToc
    javap_output = CallJavap(classpath=jar_path, classes=classes)
  File "../../build/android/gyp/jar_toc.py", line 47, in CallJavap
    return build_utils.CheckOutput(javap_cmd)
  File "/home/yang/trunk/build/android/gyp/util/build_utils.py", line 107, in CheckOutput
    stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
  File "/usr/local/lib/python2.7/subprocess.py", line 709, in __init__
    errread, errwrite)
  File "/usr/local/lib/python2.7/subprocess.py", line 1326, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Ami Fischman

unread,
Feb 28, 2014, 2:19:28 PM2/28/14
to discuss...@googlegroups.com

On Thu, Feb 27, 2014 at 6:20 PM, yang <ys....@gmail.com> wrote:
ninja: warning: premature end of file; recovering

Out of disk space?

yang

unread,
Mar 2, 2014, 8:01:22 PM3/2/14
to discuss...@googlegroups.com
clearly not the reason, still 20GB free disk space left

在 2014年3月1日星期六UTC+8上午3时19分28秒,Ami Fischman写道:

Ami Fischman

unread,
Mar 3, 2014, 1:08:36 PM3/3/14
to discuss...@googlegroups.com
Is there a 'javap' in the $PATH of the shell running this ninja?  
(just guessing at this point; you're going to probably want to debug jar_toc.py from that backtrace, either with a python debugger or with print statements)


On Thu, Feb 27, 2014 at 6:20 PM, yang <ys....@gmail.com> wrote:

--

---
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.
For more options, visit https://groups.google.com/groups/opt_out.

yang

unread,
Mar 4, 2014, 1:27:31 AM3/4/14
to discuss...@googlegroups.com
I debugged the subprocess.py and find the missing directory in android sdk
thanks a lot for your suggestion

在 2014年3月4日星期二UTC+8上午2时08分36秒,Ami Fischman写道:
Reply all
Reply to author
Forward
0 new messages