From a122924c8e6ca3bae0f1997a88044ede168a9de3 Mon Sep 17 00:00:00 2001 From: Zion Nimchuk Date: Sun, 10 Dec 2017 15:51:08 -0800 Subject: [PATCH] Update to qt 5.10 on linux, Fix issues with Qt's new installer --- .travis.yml | 18 +++++++++--------- qt-installer-noninteractive.qs | 5 +++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 123a07d0a6..add904d297 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ before_install: export CXX="g++-5" CC="gcc-5" CXXFLAGS="-Wno-format-security"; fi; - if [ "$TRAVIS_OS_NAME" = "linux" ]; then - wget -O qt-unified-linux-x64-online.run http://mirrors.ocf.berkeley.edu/qt/archive/online_installers/3.0/qt-unified-linux-x64-3.0.1-online.run ; + wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run ; chmod a+x ./qt-unified-linux-x64-online.run ; export QT_QPA_PLATFORM=minimal ; travis_wait 30 ./qt-unified-linux-x64-online.run --script qt-installer-noninteractive.qs --no-force-installations ; @@ -58,7 +58,7 @@ before_script: - git submodule update --init asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp 3rdparty/cereal 3rdparty/hidapi 3rdparty/Optional Vulkan/glslang Vulkan/Vulkan-LoaderAndValidationLayers - mkdir build - cd build - - export CMAKE_PREFIX_PATH=~/Qt/5.9.3/gcc_64/lib/cmake + - export CMAKE_PREFIX_PATH=~/Qt/5.10.0/gcc_64/lib/cmake - if [ "$TRAVIS_PULL_REQUEST" = false ]; then export CXXFLAGS="$CXXFLAGS -DBRANCH=$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH"; else @@ -68,20 +68,20 @@ before_script: - ninja - # AppImage generation - if [ -n "$UPLOAD_URL" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$CC" = "clang-4.0" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then - export LD_LIBRARY_PATH=~/Qt/5.9.3/gcc_64/lib; + export LD_LIBRARY_PATH=~/Qt/5.10.0/gcc_64/lib; DESTDIR=appdir ninja install ; find appdir/ ; find ../bin ; wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" ; chmod a+x linuxdeployqt*.AppImage ; - export PATH=~/Qt/5.9.3/gcc_64/bin/:${PATH} ; + export PATH=~/Qt/5.10.0/gcc_64/bin/:${PATH} ; ./linuxdeployqt*.AppImage --appimage-extract ; ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs ; mkdir ./appdir/usr/plugins/xcbglintegrations/ ; mkdir ./appdir/usr/plugins/imageformats/ ; - cp ~/Qt/5.9.3/gcc_64/lib/libQt5Svg.so.5 ./appdir/usr/lib/ ; - cp ~/Qt/5.9.3/gcc_64/plugins/xcbglintegrations/* ./appdir/usr/plugins/xcbglintegrations/ ; - cp ~/Qt/5.9.3/gcc_64/plugins/imageformats/* ./appdir/usr/plugins/imageformats/ ; - cp ~/Qt/5.9.3/gcc_64/plugins/platforms/* ./appdir/usr/plugins/platforms/ ; + cp ~/Qt/5.10.0/gcc_64/lib/libQt5Svg.so.5 ./appdir/usr/lib/ ; + cp ~/Qt/5.10.0/gcc_64/plugins/xcbglintegrations/* ./appdir/usr/plugins/xcbglintegrations/ ; + cp ~/Qt/5.10.0/gcc_64/plugins/imageformats/* ./appdir/usr/plugins/imageformats/ ; + cp ~/Qt/5.10.0/gcc_64/plugins/platforms/* ./appdir/usr/plugins/platforms/ ; export PATH=${TRAVIS_BUILD_DIR}/build/squashfs-root/usr/bin/:${PATH} ; ./squashfs-root/usr/bin/appimagetool ${TRAVIS_BUILD_DIR}/build/appdir ; find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq ; @@ -120,7 +120,7 @@ addons: - libstdc++-5-dev - lib32stdc++6 - zlib1g-dev - # We need to install qt 5.9.3 manually because the version trusty provides is too old. + # We need to install qt 5.10.0 manually because the version trusty provides is too old. #- qtbase5-dev - libudev-dev - libevdev-dev diff --git a/qt-installer-noninteractive.qs b/qt-installer-noninteractive.qs index cfc3be4382..79836bc436 100644 --- a/qt-installer-noninteractive.qs +++ b/qt-installer-noninteractive.qs @@ -9,7 +9,8 @@ function Controller() { } Controller.prototype.WelcomePageCallback = function() { - gui.clickButton(buttons.NextButton); + // Wait 10 seconds to load licenses and such. + gui.clickButton(buttons.NextButton, 10000); } Controller.prototype.CredentialsPageCallback = function() { @@ -32,7 +33,7 @@ Controller.prototype.ComponentSelectionPageCallback = function() { var widget = gui.currentPageWidget(); widget.deselectAll(); - widget.selectComponent("qt.593.gcc_64"); + widget.selectComponent("qt.qt5.5100.gcc_64"); gui.clickButton(buttons.NextButton); }