Guest User

Untitled

a guest
Jul 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. # There are a few ways to build this using the NDK. Using version r5b here as it introduces
  2. # better support for standalone building, so we can use FFMPEG's configure and make and a
  3. # minimal Android.mk to pull it all together
  4.  
  5. # should point to where your NDK is
  6. NDK=~/android-ndk-r5b
  7.  
  8. # get ffmpeg
  9. git clone git://git.ffmpeg.org/ffmpeg.git
  10. cd ffmpeg
  11.  
  12. # build a standalone toolchain - you could install this to somewhere more permanent
  13. $NDK/build/tools/make-standalone-toolchain.sh --install-dir=/tmp/android/toolchain
  14. export PATH=$PATH:$NDK:/tmp/android/toolchain/bin
  15.  
  16. ./configure --enable-cross-compile \
  17. --arch=arm5te \
  18. --enable-armv5te \
  19. --target-os=linux \
  20. --disable-stripping \
  21. --disable-neon \
  22. --enable-version3 \
  23. --disable-shared \
  24. --enable-static \
  25. --enable-gpl \
  26. --enable-memalign-hack \
  27. --cc=arm-linux-androideabi-gcc \
  28. --ld=arm-linux-androideabi-ld \
  29. --extra-cflags="-fPIC -DANDROID -D__thumb__ -mthumb" \
  30. --disable-ffmpeg \
  31. --disable-ffplay \
  32. --disable-ffprobe \
  33. --disable-ffserver \
  34. --disable-network \
  35. --disable-mpegaudio-hp \
  36. --disable-avdevice \
  37. --enable-zlib
  38.  
  39. # make, and wait
  40. make
Add Comment
Please, Sign In to add comment