![Ffmpeg android static library](https://cdn1.cdnme.se/5447227/9-3/7_64e61dfbddf2b36517292648.png)
Looking at this discussion here, I am doing it correct by selecting arm-linux-androideabi-ar in CPREFIX.įollowing are the correct configure flags. :-1: error: error: avdevice: no archive symbol table (run ranlib) :-1: error: error: swresample: no archive symbol table (run ranlib) :-1: error: error: avfilter: no archive symbol table (run ranlib) :-1: error: error: avutil: no archive symbol table (run ranlib) :-1: error: error: swscale: no archive symbol table (run ranlib) :-1: error: error: avcodec: no archive symbol table (run ranlib)
![ffmpeg android static library ffmpeg android static library](https://i.pinimg.com/originals/0a/71/cd/0a71cd4e768c3be00032c29529aeaf95.png)
I get the following linker error for each of them :-1: error: error: avformat: no archive symbol table (run ranlib) a libraries from my app using -lavformat -lavcodec -lswscale -lavutil -lavfilter -lswresample -lavdevice, The place to download static FFmpeg binaries for macOS 64-bit. The output of above script is placed inside ffmpeg-3.3.4/android/arm. android-ndk-r9d linux 64bit, download address: android ndk download address. Compiled environment: ubuntu 12.04 64bit. extra-ldflags="$ADDI_LDFLAGS -s -L$X264LIB -lx264" \ When developing a video player under the android platform, the bottom layer is decoded using the open source decoding library Ffmpeg, which needs to be compiled to generate a static library. extra-cflags="-Os -fpic $ADDI_CFLAGS -I$X264INC" \ cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ STRIP=$TOOLCHAIN/bin/arm-linux-androideabi-strip RANLIB=$TOOLCHAIN/bin/arm-linux-androideabi-ranlib LD=$TOOLCHAIN/bin/arm-linux-androideabi-ld
![ffmpeg android static library ffmpeg android static library](https://upload-images.jianshu.io/upload_images/1157085-c1aab4296f822295.jpeg)
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64ĪR=$TOOLCHAIN/bin/arm-linux-androideabi-arĬPREFIX=$TOOLCHAIN/bin/arm-linux-androideabi-ĬC=$TOOLCHAIN/bin/arm-linux-androideabi-gccĬXX=$TOOLCHAIN/bin/arm-linux-androideabi-g++ SYSROOT=$NDK/platforms/android-21/arch-arm64/ NDK=/path/to/android/ndk/android-ndk-r15c
![Ffmpeg android static library](https://cdn1.cdnme.se/5447227/9-3/7_64e61dfbddf2b36517292648.png)