

With SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"' SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)' SLIB_INSTALL_LINKS='$(SLIBNAME)'įor the rest of the post, I assume that path to your NDK as /path/to/ndk and path to your ffmpeg as /path/to/ffmpeg. Your new ffmpeg path should look like this, /path/to/ndk/sources/ffmpeg-4.0īefore we actually configure ffmpeg, FFmpeg is configured by default to have version codes (Ex: libavcodec-10.so) but android can’t recognize such files, so all you need to do is to replace the lines in /path/to/ffmpeg/configure SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"' SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)' SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)' Now, move your ffmpeg to the sources folder in NDK.

That’s it, You are ready to go to Step 2.įor the rest of the post, I assume that path to your NDK is /path/to/ndk and path to your ffmpeg as /path/to/ffmpeg.

