博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RTMP推流--编译RTMPDump、X264包
阅读量:6804 次
发布时间:2019-06-26

本文共 73600 字,大约阅读时间需要 245 分钟。

RTMPDump

RTMPDump]() 是一个用来处理RTMP流媒体的开源工具包。它能够单独使用进行RTMP的通信,也可以集成到FFmpeg中通过FFmpeg接口来使用RTMPDump。

RTMPDump源码下载:

解压,查看makefile文件

找到librtmp里把里面的.h、.c文件引入到 AS中工程里,结构如下:

编辑Rtmp中的CMakeLists.txt文件:

cmake_minimum_required(VERSION 3.4.1)add_library(             rtmp             STATIC             amf.c             hashswf.c             log.c             parseurl.c             rtmp.c)复制代码

编译失败,报错找不到openssl

依赖openssl,需要交叉编译openssl,在cmake中添加免去openssl包编译的脚本

cmake_minimum_required(VERSION 3.4.1)#免去openssl的编译set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_CRYPTO")add_library(             rtmp             STATIC             amf.c             hashswf.c             log.c             parseurl.c             rtmp.c)复制代码

在代码中调用rtmp中的函数,没有报错说明编译成功:

#include 
#include
#include "librtmp/rtmp.h"extern "C" JNIEXPORT jstringJNICALLJava_com_tina_pushstream_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; RTMP_Alloc(); return env->NewStringUTF(hello.c_str());}复制代码

编译集成X264

下载,解压

xiuchengdeMBP:Downloads xiuchengyin$ cd x264xiuchengdeMBP:x264 xiuchengyin$ lsAUTHORS      config.guess encoder      input        x264.c       x264res.rcCOPYING      config.sub   example.c    output       x264.hMakefile     configure    extras       tools        x264cli.hcommon       doc          filters      version.sh   x264dll.cxiuchengdeMBP:x264 xiuchengyin$ ./configure --helpUsage: ./configure [options]Help:  -h, --help               print this messageStandard options:  --prefix=PREFIX          install architecture-independent files in PREFIX                           [/usr/local]  --exec-prefix=EPREFIX    install architecture-dependent files in EPREFIX                           [PREFIX]  --bindir=DIR             install binaries in DIR [EPREFIX/bin]  --libdir=DIR             install libs in DIR [EPREFIX/lib]  --includedir=DIR         install includes in DIR [PREFIX/include]  --extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS  --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS  --extra-rcflags=ERCFLAGS add ERCFLAGS to RCFLAGSConfiguration options:  --disable-cli            disable cli  --system-libx264         use system libx264 instead of internal  --enable-shared          build shared library  --enable-static          build static library  --disable-opencl         disable OpenCL features  --disable-gpl            disable GPL-only features  --disable-thread         disable multithreaded encoding  --disable-win32thread    disable win32threads (windows only)  --disable-interlaced     disable interlaced encoding support  --bit-depth=BIT_DEPTH    set output bit depth (8, 10, all) [all]  --chroma-format=FORMAT   output chroma format (400, 420, 422, 444, all) [all]Advanced options:  --disable-asm            disable platform-specific assembly optimizations  --enable-lto             enable link-time optimization  --enable-debug           add -g  --enable-gprof           add -pg  --enable-strip           add -s  --enable-pic             build position-independent codeCross-compilation:  --host=HOST              build programs to run on HOST  --cross-prefix=PREFIX    use PREFIX for compilation tools  --sysroot=SYSROOT        root of cross-build treeExternal library support:  --disable-avs            disable avisynth support  --disable-swscale        disable swscale support  --disable-lavf           disable libavformat support  --disable-ffms           disable ffmpegsource support  --disable-gpac           disable gpac support  --disable-lsmash         disable lsmash supportxiuchengdeMBP:x264 xiuchengyin$复制代码

shell编译脚本:

#!/bin/bash# \ 换行连接符# 执行生成makefile的shell脚本PREFIX=./android/armeabi-v7aNDK_ROOT=/Users/xiuchengyin/Downloads/android-ndk-r17#注意mac电脑为  darwin-x86_64TOOLCHAIN=$NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64FLAGS="-isysroot $NDK_ROOT/sysroot -isystem $NDK_ROOT/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=17 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC"#--disable-cli 不需要命令行工具#--enable-static 静态库#和ffmpeg差不多./configure \--prefix=$PREFIX \--disable-cli \--enable-static \--enable-pic \--host=arm-linux \--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \--sysroot=$NDK_ROOT/platforms/android-17/arch-arm \--extra-cflags="$FLAGS"make cleanmake install复制代码

编译Android-17版本时会出现问题,需要修改configure文件:

#添加 -Werror=implicit-function-declaration Android-17下不检查cc_check() { ...      cc_cmd="$CC conftest.c -Werror=implicit-function-declaration $(cc_cflags $CFLAGS $CHECK_CFLAGS $2) -link $(cl_ldflags $2 $LDFLAGSCLI $LDFLAGS)"     else       cc_cmd="$CC conftest.c -Werror=implicit-function-declaration $CFLAGS $CHECK_CFLAGS $2 $LDFLAGSCLI $LDFLAGS -o conftest"  ...                                                                        复制代码

编译过程:

xiuchengdeMBP:x264 xiuchengyin$ ./build.shplatform:      ARMbyte order:    little-endiansystem:        LINUXcli:           nolibx264:       internalshared:        nostatic:        yesasm:           yesinterlaced:    yesavs:           nolavf:          noffms:          nomp4:           nogpl:           yesthread:        posixopencl:        yesfilters:       crop select_everylto:           nodebug:         nogprof:         nostrip:         noPIC:           yesbit depth:     allchroma format: allYou can run 'make' or 'make fprofiled' now.dependency file generation...rm -f  common/osdep.o common/base.o common/cpu.o common/tables.o encoder/api.o common/mc-8.o common/predict-8.o common/pixel-8.o common/macroblock-8.o common/frame-8.o common/dct-8.o common/cabac-8.o common/common-8.o common/rectangle-8.o common/set-8.o common/quant-8.o common/deblock-8.o common/vlc-8.o common/mvpred-8.o common/bitstream-8.o encoder/analyse-8.o encoder/me-8.o encoder/ratecontrol-8.o encoder/set-8.o encoder/macroblock-8.o encoder/cabac-8.o encoder/cavlc-8.o encoder/encoder-8.o encoder/lookahead-8.o common/threadpool-8.o common/arm/mc-c-8.o common/arm/predict-c-8.o common/opencl-8.o encoder/slicetype-cl-8.o common/mc-10.o common/predict-10.o common/pixel-10.o common/macroblock-10.o common/frame-10.o common/dct-10.o common/cabac-10.o common/common-10.o common/rectangle-10.o common/set-10.o common/quant-10.o common/deblock-10.o common/vlc-10.o common/mvpred-10.o common/bitstream-10.o encoder/analyse-10.o encoder/me-10.o encoder/ratecontrol-10.o encoder/set-10.o encoder/macroblock-10.o encoder/cabac-10.o encoder/cavlc-10.o encoder/encoder-10.o encoder/lookahead-10.o common/threadpool-10.o common/arm/mc-c-10.o common/arm/predict-c-10.o  common/arm/cpu-a.o common/arm/bitstream-a-8.o common/arm/dct-a-8.o common/arm/deblock-a-8.o common/arm/mc-a-8.o common/arm/pixel-a-8.o common/arm/predict-a-8.o common/arm/quant-a-8.o common/arm/bitstream-a-10.o common/arm/dct-a-10.o common/arm/deblock-a-10.o common/arm/mc-a-10.o common/arm/pixel-a-10.o common/arm/predict-a-10.o common/arm/quant-a-10.o  x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/cache-8.o filters/video/depth-8.o input/thread-8.o filters/video/cache-10.o filters/video/depth-10.o input/thread-10.o    common/oclobj.h .depend TAGSrm -f  *.a *.lib *.exp *.pdb x264 x264_lookahead.clbinrm -f checkasm8 checkasm10  tools/checkasm-arm.o  tools/checkasm-8.o  tools/checkasm-10.orm -f example  example.orm -f common/osdep.gcda common/base.gcda common/cpu.gcda common/tables.gcda encoder/api.gcda common/mc-8.gcda common/predict-8.gcda common/pixel-8.gcda common/macroblock-8.gcda common/frame-8.gcda common/dct-8.gcda common/cabac-8.gcda common/common-8.gcda common/rectangle-8.gcda common/set-8.gcda common/quant-8.gcda common/deblock-8.gcda common/vlc-8.gcda common/mvpred-8.gcda common/bitstream-8.gcda encoder/analyse-8.gcda encoder/me-8.gcda encoder/ratecontrol-8.gcda encoder/set-8.gcda encoder/macroblock-8.gcda encoder/cabac-8.gcda encoder/cavlc-8.gcda encoder/encoder-8.gcda encoder/lookahead-8.gcda common/threadpool-8.gcda common/arm/mc-c-8.gcda common/arm/predict-c-8.gcda common/opencl-8.gcda encoder/slicetype-cl-8.gcda common/mc-10.gcda common/predict-10.gcda common/pixel-10.gcda common/macroblock-10.gcda common/frame-10.gcda common/dct-10.gcda common/cabac-10.gcda common/common-10.gcda common/rectangle-10.gcda common/set-10.gcda common/quant-10.gcda common/deblock-10.gcda common/vlc-10.gcda common/mvpred-10.gcda common/bitstream-10.gcda encoder/analyse-10.gcda encoder/me-10.gcda encoder/ratecontrol-10.gcda encoder/set-10.gcda encoder/macroblock-10.gcda encoder/cabac-10.gcda encoder/cavlc-10.gcda encoder/encoder-10.gcda encoder/lookahead-10.gcda common/threadpool-10.gcda common/arm/mc-c-10.gcda common/arm/predict-c-10.gcda x264.gcda input/input.gcda input/timecode.gcda input/raw.gcda input/y4m.gcda output/raw.gcda output/matroska.gcda output/matroska_ebml.gcda output/flv.gcda output/flv_bytestream.gcda filters/filters.gcda filters/video/video.gcda filters/video/source.gcda filters/video/internal.gcda filters/video/resize.gcda filters/video/fix_vfr_pts.gcda filters/video/select_every.gcda filters/video/crop.gcda filters/video/cache-8.gcda filters/video/depth-8.gcda input/thread-8.gcda filters/video/cache-10.gcda filters/video/depth-10.gcda input/thread-10.gcda common/osdep.gcno common/base.gcno common/cpu.gcno common/tables.gcno encoder/api.gcno common/mc-8.gcno common/predict-8.gcno common/pixel-8.gcno common/macroblock-8.gcno common/frame-8.gcno common/dct-8.gcno common/cabac-8.gcno common/common-8.gcno common/rectangle-8.gcno common/set-8.gcno common/quant-8.gcno common/deblock-8.gcno common/vlc-8.gcno common/mvpred-8.gcno common/bitstream-8.gcno encoder/analyse-8.gcno encoder/me-8.gcno encoder/ratecontrol-8.gcno encoder/set-8.gcno encoder/macroblock-8.gcno encoder/cabac-8.gcno encoder/cavlc-8.gcno encoder/encoder-8.gcno encoder/lookahead-8.gcno common/threadpool-8.gcno common/arm/mc-c-8.gcno common/arm/predict-c-8.gcno common/opencl-8.gcno encoder/slicetype-cl-8.gcno common/mc-10.gcno common/predict-10.gcno common/pixel-10.gcno common/macroblock-10.gcno common/frame-10.gcno common/dct-10.gcno common/cabac-10.gcno common/common-10.gcno common/rectangle-10.gcno common/set-10.gcno common/quant-10.gcno common/deblock-10.gcno common/vlc-10.gcno common/mvpred-10.gcno common/bitstream-10.gcno encoder/analyse-10.gcno encoder/me-10.gcno encoder/ratecontrol-10.gcno encoder/set-10.gcno encoder/macroblock-10.gcno encoder/cabac-10.gcno encoder/cavlc-10.gcno encoder/encoder-10.gcno encoder/lookahead-10.gcno common/threadpool-10.gcno common/arm/mc-c-10.gcno common/arm/predict-c-10.gcno x264.gcno input/input.gcno input/timecode.gcno input/raw.gcno input/y4m.gcno output/raw.gcno output/matroska.gcno output/matroska_ebml.gcno output/flv.gcno output/flv_bytestream.gcno filters/filters.gcno filters/video/video.gcno filters/video/source.gcno filters/video/internal.gcno filters/video/resize.gcno filters/video/fix_vfr_pts.gcno filters/video/select_every.gcno filters/video/crop.gcno filters/video/cache-8.gcno filters/video/depth-8.gcno input/thread-8.gcno filters/video/cache-10.gcno filters/video/depth-10.gcno input/thread-10.gcno *.dyn pgopti.dpi pgopti.dpi.lock *.pgd *.pgccat common/opencl/x264-cl.h common/opencl/bidir.cl common/opencl/downscale.cl common/opencl/intra.cl common/opencl/motionsearch.cl common/opencl/subpel.cl common/opencl/weightp.cl | ./tools/cltostr.sh common/oclobj.hdependency file generation.../Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/osdep.c -o common/osdep.o/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/base.c -o common/base.ocommon/base.c: In function 'x264_slurp_file':common/base.c:166:5: warning: implicit declaration of function 'fseeko' [-Wimplicit-function-declaration]     b_error |= fseek( fh, 0, SEEK_END ) < 0;     ^common/base.c:167:5: warning: implicit declaration of function 'ftello' [-Wimplicit-function-declaration]     b_error |= ( i_size = ftell( fh ) ) <= 0;     ^/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/cpu.c -o common/cpu.o/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/tables.c -o common/tables.o/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/api.c -o encoder/api.o/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/mc.c -o common/mc-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/predict.c -o common/predict-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/pixel.c -o common/pixel-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/macroblock.c -o common/macroblock-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/frame.c -o common/frame-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/dct.c -o common/dct-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/cabac.c -o common/cabac-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/common.c -o common/common-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/rectangle.c -o common/rectangle-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/set.c -o common/set-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/quant.c -o common/quant-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/deblock.c -o common/deblock-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/vlc.c -o common/vlc-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/mvpred.c -o common/mvpred-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/bitstream.c -o common/bitstream-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/analyse.c -o encoder/analyse-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/me.c -o encoder/me-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/ratecontrol.c -o encoder/ratecontrol-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/set.c -o encoder/set-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/macroblock.c -o encoder/macroblock-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/cabac.c -o encoder/cabac-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/cavlc.c -o encoder/cavlc-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/encoder.c -o encoder/encoder-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8encoder/encoder.c: In function 'frame_dump':encoder/encoder.c:98:5: warning: implicit declaration of function 'fseeko' [-Wimplicit-function-declaration]     if( !fseek( f, (int64_t)h->fdec->i_frame * frame_size, SEEK_SET ) )     ^/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/lookahead.c -o encoder/lookahead-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/threadpool.c -o common/threadpool-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/arm/mc-c.c -o common/arm/mc-c-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/arm/predict-c.c -o common/arm/predict-c-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/opencl.c -o common/opencl-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8common/opencl.c: In function 'opencl_cache_load':common/opencl.c:133:5: warning: implicit declaration of function 'fseeko' [-Wimplicit-function-declaration]     fseek( fp, 0, SEEK_END );     ^common/opencl.c:134:5: warning: implicit declaration of function 'ftello' [-Wimplicit-function-declaration]     size_t size = ftell( fp );     ^/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/slicetype-cl.c -o encoder/slicetype-cl-8.o -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/mc.c -o common/mc-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/predict.c -o common/predict-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/pixel.c -o common/pixel-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/macroblock.c -o common/macroblock-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/frame.c -o common/frame-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/dct.c -o common/dct-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/cabac.c -o common/cabac-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/common.c -o common/common-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/rectangle.c -o common/rectangle-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/set.c -o common/set-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/quant.c -o common/quant-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/deblock.c -o common/deblock-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/vlc.c -o common/vlc-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/mvpred.c -o common/mvpred-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/bitstream.c -o common/bitstream-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/analyse.c -o encoder/analyse-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/me.c -o encoder/me-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/ratecontrol.c -o encoder/ratecontrol-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/set.c -o encoder/set-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/macroblock.c -o encoder/macroblock-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/cabac.c -o encoder/cabac-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/cavlc.c -o encoder/cavlc-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/encoder.c -o encoder/encoder-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10encoder/encoder.c: In function 'frame_dump':encoder/encoder.c:98:5: warning: implicit declaration of function 'fseeko' [-Wimplicit-function-declaration]     if( !fseek( f, (int64_t)h->fdec->i_frame * frame_size, SEEK_SET ) )     ^/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c encoder/lookahead.c -o encoder/lookahead-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/threadpool.c -o common/threadpool-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/arm/mc-c.c -o common/arm/mc-c-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math  -Wall -I. -I. --sysroot=/Users/xiuchengyin/Downloads/android-ndk-r17/platforms/android-21/arch-arm -isysroot /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot -isystem /Users/xiuchengyin/Downloads/android-ndk-r17/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -O0 -fPIC -std=gnu99 -D_GNU_SOURCE -fPIC -fomit-frame-pointer -fno-tree-vectorize -c common/arm/predict-c.c -o common/arm/predict-c-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/cpu-a.o common/arm/cpu-a.S/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/bitstream-a-8.o common/arm/bitstream-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/dct-a-8.o common/arm/dct-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/deblock-a-8.o common/arm/deblock-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/mc-a-8.o common/arm/mc-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/pixel-a-8.o common/arm/pixel-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/predict-a-8.o common/arm/predict-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/quant-a-8.o common/arm/quant-a.S -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/bitstream-a-10.o common/arm/bitstream-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/dct-a-10.o common/arm/dct-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/deblock-a-10.o common/arm/deblock-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/mc-a-10.o common/arm/mc-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/pixel-a-10.o common/arm/pixel-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/predict-a-10.o common/arm/predict-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -I. -I. -c -DSTACK_ALIGNMENT=4 -DPIC -o common/arm/quant-a-10.o common/arm/quant-a.S -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10rm -f libx264.a/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc-ar rc libx264.a  common/osdep.o common/base.o common/cpu.o common/tables.o encoder/api.o common/mc-8.o common/predict-8.o common/pixel-8.o common/macroblock-8.o common/frame-8.o common/dct-8.o common/cabac-8.o common/common-8.o common/rectangle-8.o common/set-8.o common/quant-8.o common/deblock-8.o common/vlc-8.o common/mvpred-8.o common/bitstream-8.o encoder/analyse-8.o encoder/me-8.o encoder/ratecontrol-8.o encoder/set-8.o encoder/macroblock-8.o encoder/cabac-8.o encoder/cavlc-8.o encoder/encoder-8.o encoder/lookahead-8.o common/threadpool-8.o common/arm/mc-c-8.o common/arm/predict-c-8.o common/opencl-8.o encoder/slicetype-cl-8.o common/mc-10.o common/predict-10.o common/pixel-10.o common/macroblock-10.o common/frame-10.o common/dct-10.o common/cabac-10.o common/common-10.o common/rectangle-10.o common/set-10.o common/quant-10.o common/deblock-10.o common/vlc-10.o common/mvpred-10.o common/bitstream-10.o encoder/analyse-10.o encoder/me-10.o encoder/ratecontrol-10.o encoder/set-10.o encoder/macroblock-10.o encoder/cabac-10.o encoder/cavlc-10.o encoder/encoder-10.o encoder/lookahead-10.o common/threadpool-10.o common/arm/mc-c-10.o common/arm/predict-c-10.o  common/arm/cpu-a.o common/arm/bitstream-a-8.o common/arm/dct-a-8.o common/arm/deblock-a-8.o common/arm/mc-a-8.o common/arm/pixel-a-8.o common/arm/predict-a-8.o common/arm/quant-a-8.o common/arm/bitstream-a-10.o common/arm/dct-a-10.o common/arm/deblock-a-10.o common/arm/mc-a-10.o common/arm/pixel-a-10.o common/arm/predict-a-10.o common/arm/quant-a-10.o/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc-ranlib libx264.ainstall -d ./android/armeabi-v7a/include ./android/armeabi-v7a/lib/pkgconfiginstall -m 644 ./x264.h x264_config.h ./android/armeabi-v7a/includeinstall -m 644 x264.pc ./android/armeabi-v7a/lib/pkgconfiginstall -d ./android/armeabi-v7a/libinstall -m 644 libx264.a ./android/armeabi-v7a/lib/Users/xiuchengyin/Downloads/android-ndk-r17/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc-ranlib ./android/armeabi-v7a/lib/libx264.a复制代码

生成了 libx264.a静态库,引入到项目中去(添加 头文件 以及 libx264.a)

修改CmakeLists.txt

cmake_minimum_required(VERSION 3.4.1)# 引入指定目录下的CMakeLists.txtadd_subdirectory(src/main/cpp/librtmp)add_library( # Sets the name of the library.             native-lib             SHARED             src/main/cpp/native-lib.cpp )include_directories(src/main/cpp/include)target_link_libraries(                       native-lib                       rtmp                       x264                       log)复制代码

Build.gradle文件添加

cmake {          cppFlags ""          abiFilters 'armeabi-v7a'     }复制代码

否则编译报错

FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:externalNativeBuildDebug'.> Build command failed.  Error while executing process /Users/xiuchengyin/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/xiuchengyin/Documents/Tina-NDK/TinaPusher/app/.externalNativeBuild/cmake/debug/x86_64 --target native-lib}  [1/8] Building C object src/main/cpp/librtmp/CMakeFiles/rtmp.dir/amf.c.o  [2/8] Building C object src/main/cpp/librtmp/CMakeFiles/rtmp.dir/hashswf.c.o  [3/8] Building C object src/main/cpp/librtmp/CMakeFiles/rtmp.dir/log.c.o  [4/8] Building C object src/main/cpp/librtmp/CMakeFiles/rtmp.dir/parseurl.c.o  [5/8] Building C object src/main/cpp/librtmp/CMakeFiles/rtmp.dir/rtmp.c.o  In file included from /Users/xiuchengyin/Documents/Tina-NDK/TinaPusher/app/src/main/cpp/librtmp/amf.c:33:  /Users/xiuchengyin/Documents/Tina-NDK/TinaPusher/app/src/main/cpp/librtmp/bytes.h:74:2: warning: "Float word order not defined, assuming the same as byte order!" [-W#warnings]  #warning "Float word order not defined, assuming the same as byte order!"   ^  1 warning generated.  [6/8] Linking C static library src/main/cpp/librtmp/librtmp.a  [7/8] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o  clang++: warning: argument unused during compilation: '-L/Users/xiuchengyin/Documents/Tina-NDK/TinaPusher/app/src/main/cpp/libs/x86_64' [-Wunused-command-line-argument]  [8/8] Linking CXX shared library ../../../../build/intermediates/cmake/debug/obj/x86_64/libnative-lib.so  FAILED: : && /Users/xiuchengyin/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++  --target=x86_64-none-linux-android21 --gcc-toolchain=/Users/xiuchengyin/Library/Android/sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 --sysroot=/Users/xiuchengyin/Library/Android/sdk/ndk-bundle/sysroot -fPIC -isystem /Users/xiuchengyin/Library/Android/sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11  -L/Users/xiuchengyin/Documents/Tina-NDK/TinaPusher/app/src/main/cpp/libs/x86_64 -O0 -fno-limit-debug-info  -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++ --sysroot /Users/xiuchengyin/Library/Android/sdk/ndk-bundle/platforms/android-21/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -L/Users/xiuchengyin/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86_64 -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o ../../../../build/intermediates/cmake/debug/obj/x86_64/libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o  src/main/cpp/librtmp/librtmp.a -lx264 -llog -latomic -lm "/Users/xiuchengyin/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86_64/libc++_static.a" "/Users/xiuchengyin/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86_64/libc++abi.a" && :  /Users/xiuchengyin/Library/Android/sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: error: cannot find -lx264  clang++: error: linker command failed with exit code 1 (use -v to see invocation)  ninja: build stopped: subcommand failed.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.org复制代码

转载地址:http://pknwl.baihongyu.com/

你可能感兴趣的文章
配置阿里yum源
查看>>
Spring MVC基础了解
查看>>
金九银十中,看看这31道Android面试题
查看>>
static 语句块
查看>>
函数节流和函数防抖
查看>>
51CTO专访:谈谈SOC安全管理平台
查看>>
使用USB直接方式解决ESXi识别加密狗的问题
查看>>
创新团队中常见的几种“怪人”
查看>>
FreeBSD从零开始---Web服务器搭建(二)
查看>>
磁盘空间未释放异常案例
查看>>
Windows Server 2008 R2的DHCP高可用
查看>>
《网络工程师软考辅导——3年真题详解与全真模拟》主要创新点、关注点
查看>>
判断网址能不能访问
查看>>
Puppet 笔记 package file services
查看>>
CentOS 6.6 HAProxy安装配置指南
查看>>
用例设计大全(整理)
查看>>
C++对象数组的实例学习
查看>>
SQL Server 2012内存
查看>>
向云上迁移数据时如何避免停机和中断
查看>>
Spacewalk 1.7 With PostgreSQL
查看>>