aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>2017-06-27 14:05:14 +0200
committerAngelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>2017-06-27 18:16:44 +0200
commit06b609c332ed5f8592e758eeb3f1d44789dd816a (patch)
tree923c95fe1097456bb81b05915a2ab218852e6d30
parented8c334b1695d10cd7975ad4011c130a2851d537 (diff)
ffmpeg compiled from scratch
Change-Id: I5d5c8b6a6ca6b9f95461239e2757331138f7e681 Signed-off-by: Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>
-rwxr-xr-xscripts/init_qt.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/init_qt.sh b/scripts/init_qt.sh
index 42fcc1c2..cdddcc9b 100755
--- a/scripts/init_qt.sh
+++ b/scripts/init_qt.sh
@@ -55,15 +55,11 @@ if [ ! -d ${QT_HOME}/5.7/android_${ANDROID_ARCH}/include/boost ]; then
ln -s $DISTILLERY_INSTALL_DIR/include/dash ${QT_HOME}/5.7/android_${ANDROID_ARCH}/include/
fi
-if [[ ! -f ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/libavformat.so || ! -f ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/libavfilter.so || ! -f ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/libavformat.so || ! -f ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/libavutil.so || ! -f ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/libswresample.so || ! -f ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/libswscale.so ]]; then
- if [ ! -f ffmpeg-3.1.4-android.7z ]; then
- wget https://downloads.sourceforge.net/project/qtav/depends/FFmpeg/android/ffmpeg-3.1.4-android.7z
- fi
- 7z x ffmpeg-3.1.4-android.7z -offmpeg
- cp ffmpeg/ffmpeg-3.1.4-android-armv7a/lib/lib* ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/
- cp -r ffmpeg/ffmpeg-3.1.4-android-armv7a/include/* ${QT_HOME}/5.7/android_${ANDROID_ARCH}/include/
+if [ ! -d ffmpeg ]; then
+ git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
fi
-
+export FFSRC=`pwd`/ffmpeg
+export ANDROID_NDK=${NDK}
export ANDROID_HOME=${SDK}
export ANDROID_NDK_HOST=${OS}-${ARCH}
export ANDROID_NDK_PLATFORM=${ANDROID_PLATFORM}
@@ -77,6 +73,12 @@ export PATH=$PATH:${ANDROID_HOME}/tools:${JAVA_HOME}/bin
if [ ! -d ${QT_HOME}/5.7/android_${ANDROID_ARCH}/include/QtAV ]; then
git clone https://github.com/wang-bin/QtAV.git
cd QtAV
+ git submodule update --init
+ cd tools/build_ffmpeg
+ ./avbuild.sh android armv7
+ cp sdk-android-gcc/lib/armeabi-v7a/lib* ${QT_HOME}/5.7/android_${ANDROID_ARCH}/lib/
+ cp -r sdk-android-gcc/include/* ${QT_HOME}/5.7/android_${ANDROID_ARCH}/include/
+ cd ../..
mkdir -p ${DISTILLERY_BUILD_DIR}/qtav
cd ${DISTILLERY_BUILD_DIR}/qtav
${QT_HOME}/5.7/android_${ANDROID_ARCH}/bin/qmake -r -spec android-g++ ${DISTILLERY_ROOT_DIR}/qt/QtAV/QtAV.pro