Revert to trusty and try to build MPV from source.
This commit is contained in:
parent
ba0b4a68e9
commit
5e55fb1d19
22
.travis.yml
22
.travis.yml
|
@ -1,26 +1,30 @@
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
sudo: require
|
sudo: require
|
||||||
dist: xenial
|
dist: trusty
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
ccache: true
|
||||||
|
directories:
|
||||||
|
- /var/cache/apt/archives
|
||||||
paths:
|
paths:
|
||||||
- /var/cache/apt/archives
|
- /var/cache/apt/archives
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- mkdir -p $TRAVIS_BUILD_DIR/apt-cache/
|
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
|
||||||
- sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial -y
|
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
|
|
||||||
install:
|
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
|
- source /opt/qt*/bin/qt*-env.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- bash scripts/build-mpv.sh
|
||||||
- qmake CONFIG+=release PREFIX=/usr
|
- qmake CONFIG+=release PREFIX=/usr
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
- make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
|
- make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
|
||||||
#- wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/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
|
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
|
||||||
- wget "https://artifacts.assassinate-you.net/artifactory/linuxdeploy/travis-154/linuxdeploy-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
|
- wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
- chmod +x linux*
|
- chmod +x linux*
|
||||||
|
@ -28,9 +32,9 @@ script:
|
||||||
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
|
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
|
||||||
- mkdir -p appdir/usr/plugins/imageformats/
|
- mkdir -p appdir/usr/plugins/imageformats/
|
||||||
- cp /opt/qt*/plugins/imageformats/libqsvg.so 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/ -bundle-non-qt-libs
|
||||||
- #./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -appimage
|
- ./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
|
- #./linuxdeploy-x86_64.AppImage --appdir AppDir -e KittehPlayer -i KittehPlayer.png -d KittehPlayer.desktop --plugin qt --output appimage
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
|
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
|
||||||
|
|
10
scripts/build-mpv.sh
Normal file
10
scripts/build-mpv.sh
Normal 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 ..
|
Loading…
Reference in a new issue