target_os = ["android"]
A basic question, but from which directory do you run gclient runhooks ?
On Saturday, 30 March 2013 16:11:57 UTC+1, Max Koshevoy wrote:I have setup Prerequisite software. I was able to compile client and server but it fails to compile android version.
My host machine is Ubuntu 12.10 64bit
NDK r8c
Oracle Java 7
export ANDROID_SDK_ROOT=/home/user/my/tools/adt/sdk/
export ANDROID_NDK_ROOT=/home/user/my/tools/android-ndk-r8e/
I added following "android_tools" folder
/home/user/my/android/webrtc/latest/trunk/third_party/android_tools
I added links
lrwxrwxrwx 1 user user 36 Mar 30 00:14 ndk -> /home/user/my/tools/android-ndk-r8e/
lrwxrwxrwx 1 user user 28 Mar 30 00:15 sdk -> /home/user/my/tools/adt/sdk/
Instead of python2.5-dev I installed python2.7-dev.
sudo ./build/install-build-deps-android.sh
0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded.
install-build-deps-android.sh complete.
I proceeded with
gclient config https://webrtc.googlecode.com/svn/trunk
gclient sync
2. Generate makefiles:
source ./build/android/envsetup.sh
BUT It failed on
gclient runhooks
/bin/sh: 1: /home/user/my/android/webrtc/latest/trunk/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/*-gcc: not found
gyp: Call to '/home/user/my/android/webrtc/latest/trunk/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/*-gcc -print-libgcc-file-name' returned exit status 127. while trying to load trunk/webrtc.gyp
Error: Command /usr/bin/python trunk/build/gyp_chromium --depth=trunk trunk/webrtc.gyp -Dextra_gyp_flag=0 returned non-zero exit status 1 in /home/user/my/android/webrtc/latest
So I copied gcc
cp arm-linux-androideabi-gcc-4.6 arm-linux-androideabi-gcc
It helped to pass that step but failed on next step
make
CC(target) out/Debug/obj.target/signal_processing/webrtc/common_audio/signal_processing/auto_corr_to_refl_coef.o
Assembler messages:
Fatal error: invalid -march= option: `armv7-a'
make: *** [out/Debug/obj.target/signal_processing/webrtc/common_audio/signal_processing/auto_corr_to_refl_coef.o] Error 2
I afraid I am using wrong: NDK or OS
Please help or share your working configuration: OS version, NDK version, revision of code etc
Thank You
export JAVA_HOME="/usr/lib/jvm/java-7-oracle/"export PATH=$JAVA_HOME/bin:$PATH
--
--- 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-webrtc+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/sly5YK7AVuA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
Thank You!
I have not noticed when my post passed moderation.
I have made following modification to .gclient
solutions = [
{ "name" : "trunk",
"url" : "https://webrtc.googlecode.com/svn/trunk",
"deps_file" : "DEPS",
"managed" : True,
"custom_deps" : {
},
"safesync_url": ""
},
]
target_os = ["android"]
It still does not create android_tools automatically. But when I create them manually I am able to compile code.
--