Failed to compile x264 library for android, error description: clang:error no such file or directory

by Lee.Saipeng   Last Updated January 11, 2019 12:01 PM - source

I'm tring Static compilation x264 for android。But unfortunately I failed. the shell scripy content like this :

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

error like this enter image description here

I am sure I have these directories,so can anyone help me? thanks very much

Tags : compile libx264


Related Questions


ffmpeg libx264 optimization

Updated August 20, 2017 05:01 AM

FFmpeg w/ x264 and x265 under Cygwin

Updated November 21, 2018 23:01 PM

"height not divisible by 2" with "min"

Updated November 10, 2017 23:01 PM

FFmpeg Two-Pass Encoding in Android

Updated December 22, 2018 07:01 AM

filter_complex without pipe (h264)

Updated November 21, 2017 21:01 PM