[FFmpeg-user] building vidstab toolchain for android

Cley Faye cleyfaye at gmail.com
Mon Nov 7 23:50:52 EET 2016


2016-11-07 11:11 GMT+01:00 Angelo Nodari <angnod at gmail.com>:

> can you help me it's more than 2 weeks that I'm trying to build ffmpeg for
> android and it's a mess!
>

> ​/home/angelo/android-21-toolchain-x86/bin/i686-linux-android-gcc
> --sysroot=/home/angelo/android-21-toolchain-x86/sysroot -isysroot
> /home/angelo/android-21-toolchain-x86/sysroot -D_ISOC99_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC
> -march=x86 -lm -fPIC -fPIE -pie -DANDROID
> -I/home/angelo/android-21-toolchain-x86/sysroot/usr/include -march=i686
> -std=c99 -fomit-frame-pointer -fPIC -pthread
> -I/home/angelo/android-21-toolchain-x86/sysroot/usr/include
> -L/home/angelo/android-21-toolchain-x86/sysroot/usr/lib -c -o
> /tmp/ffconf.Bt3DTg7e.o /tmp/ffconf.zGUrxZUs.c
> /home/angelo/android-21-toolchain-x86/bin/i686-linux-android-gcc
> -L/home/angelo/android-21-toolchain-x86/sysroot/usr/lib -fPIE -pie
> --sysroot=/home/angelo/android-21-toolchain-x86/sysroot -isysroot
> /home/angelo/android-21-toolchain-x86/sysroot -march=i686 -Wl,--as-needed
> -Wl,-z,noexecstack
> -I/home/angelo/android-21-toolchain-x86/sysroot/usr/include
> -L/home/angelo/android-21-toolchain-x86/sysroot/usr/lib -o
> /tmp/ffconf.ekvS43EI /tmp/ffconf.Bt3DTg7e.o -lvidstab -lm -lz -pthread
> /home/angelo/android-21-toolchain-x86/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld:
> warning: skipping incompatible
> /home/angelo/android-21-toolchain-x86/sysroot/usr/lib/libvidstab.so while
> searching for vidstab
> /home/angelo/android-21-toolchain-x86/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld:
> warning: skipping incompatible
> /home/angelo/android-21-toolchain-x86/sysroot/usr/lib/libvidstab.so while
> searching for vidstab
> /home/angelo/android-21-toolchain-x86/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld:
> warning: skipping incompatible
> ​​
> /home/angelo/android-21-toolchain-x86/sysroot/usr/lib/libvidstab.so while
> searching for vidstab
> /home/angelo/android-21-toolchain-x86/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld:
> warning: skipping incompatible
> /home/angelo/android-21-toolchain-x86/sysroot/usr/lib/libvidstab.so while
> searching for vidstab
> /home/angelo/android-21-toolchain-x86/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld:
> error: cannot find -lvidstab
> /tmp/ffconf.Bt3DTg7e.o:ffconf.zGUrxZUs.c:function
> check_vsMotionDetectInit: error: undefined reference to 'vsMotionDetectInit'
> collect2: error: ld returned 1 exit status


I'm not sure that this is related to ffmpeg at all;​ to me it seems that
the version of libvidstab.so in the android prefix wasn't built for the
right target. Was it built with the Android NDK too, and with the same
parameters?
Running
"file ​/home/angelo/android-21-toolchain-x86/sysroot/usr/lib/libvidstab.so"
could shed some light on this. It should show something like "ELF...x86" to
match the linker.


More information about the ffmpeg-user mailing list