2016-11-05 20 views
6

Staram się budować ffmpeg dla Androida w Windows 8.1 przy użyciu CYGWINJak zbudować FFMPEG dla całej architektury urządzenia z systemem Android?

śledzę ten question & How to compile FFMPEG under Cygwin. I succsessfully skompilować, ale nie jest generowanie FFMPEG.so ale generują ffmpeg.exe plik

Nie chcę żadnej prebuild ffmpeg library. Chcę go zbudować zgodnie z moimi wymaganiami.

ja wykonać tę kroki W Cygwin BASE

  1. git clone git: //source.ffmpeg.org/ffmpeg.git ffmpeg
  2. dos2unix configure
  3. dos2unix build_ffmpeg.sh
  4. make distclean
  5. ./configure -enable-static -disable-shared
  6. zrób
  7. make install

mój build_ffmpeg.sh jest

#!/Bin/bash

NDK =/cygdrive/e/android/sdk/NDK-bundle PLATFORMA = $ NDK/platform/android-24/arch-arm TOOLCHAIN ​​= $ NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows CPU = ramię PREFIX = $ (pwd)/android/$ CPU ADDI_CFLAGS = "- marm"

pushd ffmpeg # Konfiguracja ./ Configure \ --target-os = android \ prefix = $ PREFIX \ --enable-cross-kompilacji \ --enable-runtime-cpudetect \ --disable-ASM \ --arch = ramię \ --cc = $ TOOLCHAIN ​​/ bin/arm-linux-androideabi-gcc \ --cross-prefix = $ TOOLCHAIN ​​/ bin/arm-linux-androideabi- \ --dezable-stripping \ --nm = $ toolchain/bin/arm-linux-androideabi nm \ --sysroot = $ PLATFORMA \ --disable-programy \ --disable-doc \ --enable-protocol = file \ --disable- avresample \ --enable-gpl \ enable-version3 \ enable-nonfree \ --disable-ffplay \ --disable-ffserver \ --disable-FFmpega \ --disable-ffprobe \ --extra-CFLAGS =” -fPIC -DANDROID -D__thumb__ -mthumb -Odkryte błędy -Niezbędne $ ADDI_CFLAGS "\ --extra-libs =" - lgcc "\ --extra-ldflags =" - L $ PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog” # make make clean zrobić -j5 make -j5 zainstalować

popd

Mój plik LOG to here

Moje pytanie brzmi: jak zbudować program ffmpeg dla całej architektury urządzenia z systemem Android?

+0

[Ten link] (https://github.com/WritingMinds/ ffmpeg-android-java) został umieszczony na oficjalnej stronie ffmpeg. Powinieneś znaleźć przewodnik, a także wstępnie skompilowane pliki binarne. – alok

+0

@alok to link zawiera bibliotekę preinstalowaną x64, mips? –

+0

@downvotter, jeśli pomyślnie się skompilujesz niż oddasz głos ..... –

Odpowiedz

Powiązane problemy