diff --git a/.gitignore b/.gitignore index 2c226c9..c4c08d5 100755 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ *.o build toolchain-* +libpng-* +expat-* +fribidi-* # Created by http://www.gitignore.io @@ -33,4 +36,3 @@ Temporary Items # KDE directory preferences .directory - diff --git a/.gitmodules b/.gitmodules index 27493c0..888fcaf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,15 +13,6 @@ [submodule "fontconfig"] path = fontconfig url = git://anongit.freedesktop.org/fontconfig -[submodule "expat"] - path = expat - url = https://github.com/hiteshsondhi88/expat.git -[submodule "libpng"] - path = libpng - url = https://github.com/hiteshsondhi88/libpng.git -[submodule "fribidi"] - path = fribidi - url = https://github.com/hiteshsondhi88/fribidi.git [submodule "SampleFFmpegApp"] path = SampleFFmpegApp url = https://github.com/hiteshsondhi88/SampleFFmpegApp.git diff --git a/README.md b/README.md index 8e27087..72a5736 100755 --- a/README.md +++ b/README.md @@ -14,8 +14,9 @@ Instructions 1. export ANDROID_NDK={Android NDK Base Path} * Run following commands to compile ffmpeg 1. sudo apt-get --quiet --yes install build-essential git autoconf libtool pkg-config gperf gettext - 2. git submodule update --init + 2. ./init_update_libs.sh 3. ./android_build.sh +* To update submodules and libraries you can use ./init_update_libs.sh command * Find the executable binary in build directory. * If you want to use FONTCONFIG then you need to specify your custom fontconfig config file (e.g - "FONTCONFIG_FILE=/sdcard/fonts.conf ./ffmpeg --version", where /sdcard/fonts.conf is location of your FONTCONFIG configuration file). * You can also download [prebuilt-binaries](https://github.com/hiteshsondhi88/ffmpeg-android/releases/download/v0.1.0/prebuilt-binaries.tar.gz) here. diff --git a/expat b/expat deleted file mode 160000 index 37f4ea1..0000000 --- a/expat +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 37f4ea195144c1f9b13a88cb8045465e12d47fe6 diff --git a/expat_build.sh b/expat_build.sh index 5272580..611c945 100755 --- a/expat_build.sh +++ b/expat_build.sh @@ -2,7 +2,7 @@ . abi_settings.sh $1 $2 $3 -pushd expat +pushd expat-2.1.0 make clean diff --git a/fribidi b/fribidi deleted file mode 160000 index b2d0da7..0000000 --- a/fribidi +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b2d0da7fde67b731ff64b372e5c9e33db5fa4642 diff --git a/fribidi_build.sh b/fribidi_build.sh index 5e895b6..49610bc 100755 --- a/fribidi_build.sh +++ b/fribidi_build.sh @@ -2,7 +2,7 @@ . abi_settings.sh $1 $2 $3 -pushd fribidi +pushd fribidi-0.19.6 make clean diff --git a/init_update_libs.sh b/init_update_libs.sh new file mode 100755 index 0000000..4195aa5 --- /dev/null +++ b/init_update_libs.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +echo "============================================" +echo "Updating submodules" +git submodule update --init +echo "============================================" +echo "Updating libpng, expat and fribidi" +rm -rf libpng-* +rm -rf expat-* +rm -rf fribidi-* + +wget -O- https://downloads.sf.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.xz | tar xJ +wget -O- http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz | tar xz +wget -O- http://fribidi.org/download/fribidi-0.19.6.tar.bz2 | tar xj +echo "============================================" diff --git a/libpng b/libpng deleted file mode 160000 index 259fb77..0000000 --- a/libpng +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 259fb7761d747655c607efcec7a12ff1f3c24561 diff --git a/libpng_build.sh b/libpng_build.sh index 3bccafb..bece48d 100755 Binary files a/libpng_build.sh and b/libpng_build.sh differ diff --git a/settings.sh b/settings.sh index 9a722e9..b218123 100755 --- a/settings.sh +++ b/settings.sh @@ -2,6 +2,10 @@ SUPPORTED_ARCHITECTURES=(armeabi-v7a armeabi-v7a-neon) ANDROID_NDK_ROOT_PATH=${ANDROID_NDK} +if [[ -z "$ANDROID_NDK_ROOT_PATH" ]]; then + echo "You need to set ANDROID_NDK environment variable, please check instructions" + exit +fi ANDROID_API_VERSION=9 NDK_TOOLCHAIN_ABI_VERSION=4.8