From 1dfb37f6a2aafe950587ad4e4f0e290e6ec7d084 Mon Sep 17 00:00:00 2001 From: GerrieWell <279952003@qq.com> Date: Thu, 7 Apr 2016 15:00:47 +0800 Subject: [PATCH] fix configure error: pkg-config can't found rtmp fix configure error: pkg-config can't found rtmp --- _build_ffmpeg.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_build_ffmpeg.sh b/_build_ffmpeg.sh index cbb873e..c174e94 100644 --- a/_build_ffmpeg.sh +++ b/_build_ffmpeg.sh @@ -38,12 +38,12 @@ function build_ffmpeg { --cross-prefix=${TOOLCHAIN}/bin/arm-linux-androideabi- \ --target-os=linux \ --arch=arm \ - --enable-cross-compile \ - --enable-librtmp \ + --enable-cross-compile \ --enable-decoder=h264 \ --sysroot=${SYSROOT} \ - --extra-cflags="-Os -fpic ${addi_cflags}" \ - --extra-ldflags="-L${src_root}/openssl-android/libs/armeabi ${addi_ldflags}" \ + --extra-cflags="-Os -fpic ${addi_cflags} -L${dist_lib_root}" \ + --extra-ldflags="-L${src_root}/openssl-android/libs/armeabi ${addi_ldflags} -L${dist_lib_root}" \ + --extra-libs="-lrtmp-1" \ --pkg-config=$(which pkg-config) >> ${build_log} 2>&1 || die "Couldn't configure ffmpeg!" # build