FFmpeg编译错误:arm-linxu-androideabi-gcc is unable to create an executable file

执行configure.sh
/develop/program/sdk/androidndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc-4.4.3 is unable to create an executable file.

解决方法:
创建临时文件:export TMPDIR="D:/FFmpeg/temp",添加后的代码如下所示:

#!/bin/sh
NDK=C:/Software_Install_Files/Android/sdk/ndk-bundle
SYSROOT=$NDK/platforms/android-21/arch-arm
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64
export TMPDIR="D:/FFmpeg/temp"
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-avdevice \
--disable-doc \
--disable-symver \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
make install
}
CPU=arm
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-marm"
build_one

你可能感兴趣的:(FFmpeg编译错误:arm-linxu-androideabi-gcc is unable to create an executable file)