#!/bin/bash
NDK=/root/Ndk/android-ndk-r14b
SYSROOT=$NDK/platforms/android-23/arch-arm/
TOOLCHAIN=/root/Ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-doc \
--disable-asm \
--enable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-doc \
--disable-symver \
--enable-small \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-mfloat-abi=softfp -mfpu=neon -fPIE -pi" \
--extra-ldflags="" \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
make install
}
CPU=arm
PREFIX=/root/FFmpegOut/android/$CPU
build_one
编译正常,so文件放到android 下无法运行,求大神啊
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s: Assembler messages:
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47468: Error: selected processor does not support Thumb mode `itt gt'
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47469: Error: thumb conditional instruction should be in IT block -- `movgt r6,r0'
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47470: Error: thumb conditional instruction should be in IT block -- `movgt r0,r1'
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47472: Error: selected processor does not support Thumb mode `it le'
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47473: Error: thumb conditional instruction should be in IT block -- `movle r0,r2'
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47475: Error: selected processor does not support Thumb mode `it gt'
C:\Users\ADMINI~1\AppData\Local\Temp\ffmpeg-dfa34a.s:47476: Error: thumb conditional instruction should be in IT block -- `movgt r6,r0'
clang.exe: error: assembler command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
|