Home » Android » How i can fix selected processor does not support Thumb mode `itt gt'

How i can fix selected processor does not support Thumb mode `itt gt'

Posted by: admin November 1, 2017 Leave a comment

Questions:

When I compiled ffmpeg(version 3.3.4) for Android, I successfully compiled out .so, but there was an error while running the project.

C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s: Assembler messages:
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43301: Error: selected processor does not support Thumb mode itt gt'
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43302: Error: thumb conditional instruction should be in IT block --
movgt r6,r0′
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43303: Error: thumb conditional instruction should be in IT block — movgt r0,r1'
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43305: Error: selected processor does not support Thumb mode
it le’
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43306: Error: thumb conditional instruction should be in IT block — movle r0,r2'
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43308: Error: selected processor does not support Thumb mode
it gt’
C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43309: 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)

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 \
–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=armv7-a \
–enable-cross-compile \
–sysroot=$SYSROOT \
–extra-cflags=”-march=armv7-a -mfloat-abi=softfp -mfpu=neon -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__” \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
make install
}
CPU=arm
PREFIX=/root/FFmpegOut/android/$CPU
build_one

Answers: