how to build webrtc for android

1,176 views
Skip to first unread message

Hou Seaman

unread,
Aug 14, 2013, 9:40:23 PM8/14/13
to discuss...@googlegroups.com
system: ubuntu12.04 64bit

prepare some tool for downlaod and build webrtc

   sudo apt-get install git-core

   sudo apt-get install subversion

   git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

   add depot_tools to ~/.bashrc

   install jdk https://code.google.com/p/chromium/wiki/AndroidBuildInstructions?#Install_prerequisites

download and build

1.gclient config https://webrtc.googlecode.com/svn/trunk 

2.echo "target_os = ['android', 'unix']" >> .gclient

3.gclient sync --nohooks

4.cd trunk && sudo ./build/install-build-deps-android.sh

5.source ./build/android/envsetup.sh

   5.1 GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 $GYP_DEFINES"

   5.2 export GYP_DEFINES="enable_tracing=1 $GYP_DEFINES"

6.gclient runhooks

7.ninja -C out/Debug All

8. cd webrtc/video_engine/test/android/

9.ndk-build APP_ABI=armeabi-v7a

10.ant debug install


when step 6

Updating projects from gyp files...

/bin/sh: 1: g++: not found

compiler_version.py failed to execute: g++ dumpversion

command 'g++ dumpversion' return none-zero exit status 127

cross compile setting is wrong .


Hou Seaman

unread,
Aug 15, 2013, 8:48:24 AM8/15/13
to discuss...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages