2016-08-24 10:37:48 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-05-04 07:16:41 +02:00
|
|
|
git fetch --tags
|
|
|
|
|
2016-08-24 11:04:33 +02:00
|
|
|
if test "$TRAVIS_OS_NAME" = "osx"; then
|
2016-08-24 10:37:48 +02:00
|
|
|
# Mac OS X.
|
2020-11-26 10:04:11 +01:00
|
|
|
pip3 install aqtinstall
|
2020-11-27 06:18:57 +01:00
|
|
|
|
|
|
|
# Install Qt.
|
|
|
|
QTPATH="$(pwd)/Qt"
|
|
|
|
QTVERSION="5.15.2"
|
|
|
|
QTBIN="$QTPATH/$QTVERSION/clang_64/bin"
|
|
|
|
|
|
|
|
echo "Qt bin directory is: $QTBIN"
|
|
|
|
echo "Qt will be installed to: $QTPATH"
|
|
|
|
|
|
|
|
aqt install -O "$QTPATH" 5.15.2 mac desktop clang_64 -m qtwebengine
|
|
|
|
|
|
|
|
export QT_PLUGIN_PATH="$QTPATH/$QTVERSION/clang_64/plugins"
|
|
|
|
export PATH="$QTBIN:$PATH"
|
|
|
|
|
|
|
|
qmake --version
|
2020-11-26 11:45:51 +01:00
|
|
|
elif test "$TRAVIS_OS_NAME" = "linux"; then
|
2016-08-24 10:37:48 +02:00
|
|
|
# Linux.
|
2019-04-03 10:07:18 +02:00
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
2020-05-02 19:53:52 +02:00
|
|
|
sudo add-apt-repository ppa:beineri/opt-qt-5.14.2-xenial -y
|
2020-11-27 06:18:57 +01:00
|
|
|
|
2016-08-24 11:04:33 +02:00
|
|
|
sudo apt-get update
|
2020-05-02 19:53:52 +02:00
|
|
|
sudo apt-get -y install gcc-7 g++-7 qt514tools qt514base qt514webengine qt514svg
|
2019-04-03 10:07:18 +02:00
|
|
|
sudo apt-get -y install openssl libssl-dev libgl1-mesa-dev
|
2020-11-27 06:18:57 +01:00
|
|
|
|
2019-04-03 10:07:18 +02:00
|
|
|
sudo update-alternatives --remove-all gcc
|
|
|
|
sudo update-alternatives --remove-all g++
|
|
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50
|
|
|
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50
|
2016-08-24 10:06:45 +02:00
|
|
|
fi
|