0

I'm tring Static compilation x264 for android. But unfortunately I failed. This is the shell script content:

ANDROID_NDK=/Users/Project/devtools/android-sdk-macosx/android-ndk-r16b
SYSROOT=$ANDROID_NDK/platforms/android-16/arch-arm
CROSS_PREFIX=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -D__ANDROID__ -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__"
EXTRA_LDFLAGS="-nostdlib"
PREFIX=`pwd`/libs/armeabi-v7a

./configure --prefix=$PREFIX \
        --host=arm-linux \
        --sysroot=$SYSROOT \
        --cross-prefix=$CROSS_PREFIX \
        --extra-cflags="$EXTRA_CFLAGS" \
        --extra-ldflags="$EXTRA_LDFLAGS" \
        --enable-pic \
        --enable-static \
        --enable-strip \
        --disable-cli \
        --disable-asm
       # --disable-win32thread \
       # --disable-avs \
       # --disable-swscale \
       # --disable-lavf \
       # --disable-ffms \
       # --disable-gpac \
       # --disable-lsmash \
       # --disable-opencl

make clean
make STRIP= -j8 install || exit 1

cp -f $PREFIX/libx264.a $PREFIX

See the error here:

log_screenshot

I am sure I have these directories.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.