supermarketfere.blogg.se

Ffmpeg build script
Ffmpeg build script











ffmpeg build script

We disabled static library and enabled shared library. cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64 SYSROOT=$NDK/platforms/android-9/arch-arm/ SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'Ĭopy the following text to a text editor and save it as build_android.sh. SLIBNAME_WITH_MAJOR=' $(SLIBPREF) $(FULLNAME)- $(LIBMAJOR) $(SLIBSUF)' Therefore we’ll need to replace the above lines with the following lines. libavcodec.so.55), which is not compatible with Android build system. This cause ffmpeg shared libraries to be compiled to libavcodec.so. SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)' SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)' Open ffmpeg-2.xx/configure file with a text editor, and locate the following lines. We’ll discuss about the reason for doing this later. Download the source code and decompress it to $NDK/sources folder. FFMPEG source code can be downloaded from the ffmpeg website.













Ffmpeg build script