Problems building Android version on linux

129 views
Skip to first unread message

bla blat

unread,
Feb 20, 2014, 11:16:15 AM2/20/14
to discuss...@googlegroups.com
Hi
I'm having an issue compiling the android version of webrtc.  I follow the instructions here http://www.webrtc.org/reference/getting-started pretty much to the letter.

When running the command 

gclient sync --force

The command will run for a while with masses of output, then I get this error:


Hook 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --bucket chromium-webrtc-resources trunk/resources' took 49.55 secs

________ running '/usr/bin/python trunk/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' in '/home/xxx'
ERROR at //build/config/linux/pkg_config.gni:31:17: Script returned non-zero exit code.
    pkgresult = exec_script("//build/config/linux/pkg-config.py",
                ^----------
Current dir: /home/xxx/trunk/out/gn_build.Release/
Command: python /home/xxx/trunk/build/config/linux/pkg-config.py -s /home/xxx/trunk/third_party/android_tools/ndk/platforms/android-14/arch-arm -a arm libudev
Returned 1.
Generating gyp files from GN...
Error: Command /usr/bin/python trunk/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0 returned non-zero exit status 1 in /home/xxx

It seems to be having a problem with the command at the bottom.  When I try to run that command I get this output:

xxx@h88-150-232-106:~/trunk/third_party/android_tools/ndk/platforms/android-14/arch-arm/usr/include$  python /home/xxx/trunk/build/config/linux/pkg-config.py -s /home/xxx/trunk/third_party/android_tools/ndk/platforms/android-14/arch-arm -a arm libudev
Traceback (most recent call last):
  File "/home/xxx/trunk/build/config/linux/pkg-config.py", line 117, in <module>
    prefix = GetPkgConfigPrefixToStrip(args)
  File "/home/xxx/trunk/build/config/linux/pkg-config.py", line 77, in GetPkgConfigPrefixToStrip
    env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 575, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['pkg-config', '--variable=prefix', 'libudev']' returned non-zero exit status 1

Has anyone else had this issue, or have any idea how to put it right?  I've checked the path of all the libraries(java, sdk, ndk), seems to be good.

Any help would be appreciated
Thanks

andy424

unread,
Feb 20, 2014, 2:37:39 PM2/20/14
to discuss...@googlegroups.com
re-running the install-build-dependencies fixed it for me. Look here for a thread that already discussed this issue

https://groups.google.com/forum/#!topic/discuss-webrtc/1VBljipg--M
Reply all
Reply to author
Forward
0 new messages