Skip to content

Latest commit

 

History

History
executable file
·
76 lines (62 loc) · 1.44 KB

build_android.md

File metadata and controls

executable file
·
76 lines (62 loc) · 1.44 KB

Prepare

# install git
https://git-scm.com/downloads

# install Android ndk
Latest version: https://developer.android.com/ndk/downloads
Old version: https://github.com/android/ndk/wiki/Unsupported-Downloads

# add these lines to your ~/.bash_profile or ~/.profile
# export ANDROID_SDK=<your sdk path>
# export ANDROID_NDK=<your ndk path>

# on Cygwin (unmaintained)
# install git, make, yasm
  • If you prefer more codec/format
cd config
rm module.sh
ln -s module-default.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  • If you prefer less codec/format for smaller binary size (include hevc function)
cd config
rm module.sh
ln -s module-lite-hevc.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  • If you prefer less codec/format for smaller binary size (by default)
cd config
rm module.sh
ln -s module-lite.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  • For Ubuntu/Debian users.
# choose [No] to use bash
sudo dpkg-reconfigure bash
  • If you'd like to share your config, pull request is welcome.

Build

git clone https://github.com/valoroso-dev/BikPlayer.git bikplayer-android
cd bikplayer-android

# init the code
./init-android.sh

cd android/contrib
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all

cd ..
./compile-ijk.sh all

#
# Gradle
#     cd bikplayer
#     gradle