1
0
Fork 0

Revert to trusty and try to build MPV from source.

This commit is contained in:
NamedKitten 2018-10-14 13:29:02 +01:00
parent ba0b4a68e9
commit 5e55fb1d19
2 changed files with 24 additions and 10 deletions

View file

@ -1,26 +1,30 @@
language: cpp
compiler: gcc
sudo: require
dist: xenial
dist: trusty
cache:
ccache: true
directories:
- /var/cache/apt/archives
paths:
- /var/cache/apt/archives
- /var/cache/apt/archives
before_install:
- mkdir -p $TRAVIS_BUILD_DIR/apt-cache/
- sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial -y
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
- sudo apt-get update
install:
- sudo apt-get -y install libmpv-dev qt511-meta-minimal qt511quickcontrols qt511quickcontrols2 qt511imageformats qt511svg libavcodec-dev libavcodec-extra libgl1-mesa-dev
- sudo apt-get -y install libmpv-dev qt511-meta-minimal qt511quickcontrols2 qt511imageformats qt511svg libgl1-mesa-dev
- source /opt/qt*/bin/qt*-env.sh
script:
- bash scripts/build-mpv.sh
- qmake CONFIG+=release PREFIX=/usr
- make -j$(nproc)
- make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
#- wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
#- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- wget "https://artifacts.assassinate-you.net/artifactory/linuxdeploy/travis-154/linuxdeploy-x86_64.AppImage"
- wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
- chmod +x linux*
@ -28,9 +32,9 @@ script:
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
- mkdir -p appdir/usr/plugins/imageformats/
- cp /opt/qt*/plugins/imageformats/libqsvg.so appdir/usr/plugins/imageformats/
- #./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -bundle-non-qt-libs
- #./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -appimage
- ./linuxdeploy-x86_64.AppImage --appdir AppDir -e KittehPlayer -i KittehPlayer.png -d KittehPlayer.desktop --plugin qt --output appimage
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -bundle-non-qt-libs
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -appimage
- #./linuxdeploy-x86_64.AppImage --appdir AppDir -e KittehPlayer -i KittehPlayer.png -d KittehPlayer.desktop --plugin qt --output appimage
after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq

10
scripts/build-mpv.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
git clone --depth 1 https://github.com/mpv-player/mpv-build
cd mpv-build
echo --enable-libmpv-shared > mpv_options
echo --disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient > mpv_options
./rebuild -j`nproc`
sudo ./install
cd ..