我正在尝试在 Windows 10 上为 Android 配置 ffmpeg巴什Ubuntu 终端。我正在关注本教程但出现错误。
错误是
C:/Users/BIP042.BIPADBBSR/AppData/Local/Android/Sdk/ndk-bundle/sources/ffmpeg-2.2.3/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64//bin/arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.
该怎么办?
这是我的 build_android.sh 文件
#!/bin/bash
NDK=C:/Users/BIP042.BIPADBBSR/AppData/Local/Android/Sdk/ndk- bundle/sources/ffmpeg-2.2.3
SYSROOT=$NDK/platforms/android-22/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/
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