

extra-cflags="-Os -fpic $ADDI_CFLAGS" \Īfter compiling $NDK_DIR/sources/ ffmpeg-2.5.3, there will be one more android directory, which is the compiled library we ls -R android/ cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \

TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 SYSROOT=$NDK/platforms/android-15/arch-arm/ Note that the first three lines should be configured correctly on their own path. SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'Ĭreate the file build_android.sh in the ffmpeg-2.5.3 directory. SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)' SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)'

SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' Modify Ffmpeg compilation configurationĭrop these lines from the configure file in the ES36en-2.5.3 directory to remove the version number of the last "55" of the default-generated library name libavcodec.so.55. Unzip Ffmpeg to $NDK_DIR/sources/ffmpeg-2.5.3.ĥ. I in the "/ usr/local/bin/android - ndk - r10d" (use $NDK_DIR refer to after this directory). When executed, mv is automatically unzipped and placed where you want it. Do not unzip, file permissions will error.
