Last active
May 25, 2017 04:01
-
-
Save ryanfelton/a2d7c3e5519bc27af63a to your computer and use it in GitHub Desktop.
CircleCI Install Qt5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Based on: https://gist.github.com/ryanong/ad6e7570e3f72b22c0e4 | |
set -x | |
# Exit if any subcommand fails | |
set -e | |
if [ ! -d "/opt/qt55" ]; then | |
echo "Installing QT 5.5 ..." | |
yes y | sudo add-apt-repository ppa:beineri/opt-qt55 | |
sudo apt-get update | |
sudo apt-get autoremove | |
sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/beineri-opt-qt55-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | |
sudo apt-get install qt55webkit libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev qt55declarative qt55location qt55sensors | |
echo "QT 5.5 installed." | |
fi | |
grep -q -F 'source /opt/qt54/bin/qt55-env.sh' ~/.circlerc || echo 'source /opt/qt54/bin/qt55-env.sh' >> ~/.circlerc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment