Hi all,
I'm trying to compile VLC for Android with the libvpx module enabled. I've already resolved a lot of issue, but i have no idea how resolve the last one.
When ndk-build try to link all modules from vlc and generate the libvlcjni.so library, it show me this error:
<android-ndk>/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: <vlc_android_dir>/vlc/contrib/arm-linux-androideabi/lib/libvpx.a(arm_cpudetect.c.o): in function arm_cpu_caps:arm_cpudetect.c(.text+0x64): error: undefined reference to 'android_getCpuFeatures'
I know, when linker try to resolve libvpx's symbols it can't find the function 'android_getCpuFeatures' from android's cpufeatures static library.
I added the lines described in <android-ndk>/docs/CPU-FEATURES.html (LOCAL_STATIC_LIBRARIES := cpufeatures $(call import-module,android/cpufeatures) in my Android.mk but it dosen't work.
I'm thinking about a different version of cpufeatures.h (from the one used on compiling time and other used on linking time). I'm working on configures and Makefiles of libvpx but really I don't know how to fix it.
Somebody else had the same issue?