ericmckean / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

cross compiling libvpx for arm android not working #726

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This fails on Link:   

./configure --sdk-path=/usr/local/google/android-ndk-r9b 
--target=armv7-android-gcc --enable-debug

/usr/local/google/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/
linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-andr
oideabi/bin/ld: ./libvpx.a(arm_cpudetect.c.o): in function 
arm_cpu_caps:vpx_ports/arm_cpudetect.c:120: error: undefined reference to 
'android_getCpuFeatures'
collect2: ld returned 1 exit status

This fails on Compile:   
./configure --sdk-path=/usr/local/google/android-ndk-r9b --cpu=cortex-a8 
--target=armv7-android-gcc --enable-debug --disable-runtime-cpu-detect

Using this I get: 

third_party/libyuv/source/cpu_id.c:17:26: fatal error: cpu-features.h: No such 
file or directory 

compilation terminated.

Original issue reported on code.google.com by jimbankoski@google.com on 11 Mar 2014 at 2:22

GoogleCodeExporter commented 9 years ago
Change to include machine/cpu-features.h

Original comment by haid...@multicorewareinc.com on 22 Sep 2014 at 2:18

GoogleCodeExporter commented 9 years ago

Original comment by johannko...@google.com on 6 Nov 2014 at 1:13

GoogleCodeExporter commented 9 years ago
To set up the environment for Android, use ndk-build as mentioned in 
test/android/README

To build outside of that configuration, use --target=armv7-linux-gcc or 
--disable-runtime-cpu-detect

Original comment by johannko...@google.com on 19 Dec 2014 at 2:52