File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,14 @@ sudo apt install $ffmpeg_build_dep libdav1d-dev libde265-dev libopenh264-dev
4444sudo apt-get -y remove ' libavcodec*' ' libavutil*' ' libswscale*' libvpx-dev nginx
4545
4646sudo apt install qt6-base-dev
47- # https://bugs.launchpad.net/ubuntu/+source/qtchooser/+bug/1964763 bug workaround
48- sudo qtchooser -install qt6 " $( command -v qmake6) " # askubuntu.com/a/1460243
49- sudo ln -n " /usr/lib/$( uname -m) -linux-gnu/qt-default/qtchooser/qt6.conf" \
50- " /usr/lib/$( uname -m) -linux-gnu/qt-default/qtchooser/default.conf"
47+ . /etc/os-release # source ID and VERSION_ID
48+ if [ " $ID " = ubuntu ] && [ " $VERSION_ID " = 22.04 ]; then
49+ # https://bugs.launchpad.net/ubuntu/+source/qtchooser/+bug/1964763 bug
50+ # workaround proposed in https://askubuntu.com/a/1460243
51+ sudo qtchooser -install qt6 " $( command -v qmake6) "
52+ sudo ln -n " /usr/lib/$( uname -m) -linux-gnu/qt-default/qtchooser/\
53+ qt6.conf" " /usr/lib/$( uname -m) -linux-gnu/qt-default/qtchooser/default.conf"
54+ fi
5155
5256# Install cross-platform deps
5357" $GITHUB_WORKSPACE /.github/scripts/install-common-deps.sh"
You can’t perform that action at this time.
0 commit comments