I am trying to create ffmpeg for android on windows 8.1 using CYGWIN
I follow this question and How to compile FFMPEG under Cygwin . I am successfully compiling but not generating FFMPEG.so but generating the ffmpeg.exe file
I don't need any prebuild ffmpeg library . I want to build it for my requirement.
Performing these steps in CYGWIN BASE
- git clone git: //source.ffmpeg.org/ffmpeg.git ffmpeg
- dos2unix configure
- dos2unix build_ffmpeg.sh
- make distclean
- ./configure -enable-static -disable-shared
- to do
- make install
my build_ffmpeg.sh -
#! / Bin / bash
NDK = / cygdrive / e / Android / SDK / NDK bundle PLATFORM = $ NDK / platform / android-24 / arch-arm ToolChain = $ NDK / compiled tools / lever Linux-androideabi-4,9 / precompiled / window CPU = hand PREFIX = $ (PWD) / Android / $ processor ADDI_CFLAGS = "- MARM"
pushd ffmpeg # Configure. / configure \ --target-os = android \ --prefix = $ PREFIX \ --enable-cross-compile \ --enable-runtime-cpudetect \ --disable-asm \ --arch = arm \ --cc = $ TOOLCHAIN / bin / arm-linux-androideabi-gcc \ --cross-prefix = $ TOOLCHAIN / bin / arm-linux-androideabi- \ --disable-stripping \ --nm = $ TOOLCHAIN / bin / arm-linux-androideabi-nm \ --sysroot = $ PLATFORM \ --disable-programs \ --disable-doc \ --enable-protocol = file \ --disable-avresample \ --enable-gpl \ - -enable-version3 \ --enable-nonfree \ --disable-ffplay \ --disable-ffserver \ --disable-ffmpeg \ --disable-ffprobe \ --extra-cflags = "- fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated $ ADDI_CFLAGS "\ --extra-libs =" - lgcc "\ --extra-ldflags =" - L $ PLATFORM / usr / lib -nostdlib -lc -lm -ldl -llog "# Affairs s clear make -j5 make -j5 set
Popd
My LOG file is here
My question is: how to build ffmpeg for the entire architecture of an Android device?
source share