Compiling libvpx for android

190 views
Skip to first unread message

Roberto Pompermaier

unread,
Jul 15, 2013, 3:52:35 AM7/15/13
to andro...@googlegroups.com
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?

Stanislav Mikhailenko

unread,
Feb 25, 2015, 6:35:13 PM2/25/15
to andro...@googlegroups.com
try to disable vpx  in ffmpeg rules.mak


понедельник, 15 июля 2013 г., 14:52:35 UTC+7 пользователь Roberto Pompermaier написал:

Stanislav Mikhailenko

unread,
Feb 25, 2015, 6:35:13 PM2/25/15
to andro...@googlegroups.com
Yes, the same issue. don't know how to fix that for now.


понедельник, 15 июля 2013 г., 14:52:35 UTC+7 пользователь Roberto Pompermaier написал:
Hi all,
Reply all
Reply to author
Forward
0 new messages