Piecemeal qt install should fix install on Bullseye (attempt)

This commit is contained in:
Chris Esposito 2022-01-23 16:36:00 +11:00 committed by GitHub
parent 1de5c60815
commit b5e4c4296f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,14 @@
#!/bin/bash
# Install prerequisites
dpkg -s qt5-default
QT5_NOT_INSTALLED=$?
dpkg -s qtbase5-dev
QTBASE_NOT_INSTALLED=$?
dpkg -s qtchooser
QTCHOOSER_NOT_INSTALLED=$?
dpkg -s qt5-qmake
QMAKE_NOT_INSTALLED=$?
dpkg -s qtbase5-dev-tools
QTDEV_NOT_INSTALLED=$?
dpkg -s libusb-1.0-0-dev
LIBUSB_NOT_INSTALLED=$?
dpkg -s libfftw3-dev
@ -11,9 +17,12 @@ FFTW_NOT_INSTALLED=$?
# We don't want to bail if one of the first 4 lines returns error. That's what they're meant to do!
set -e
if [ $QT5_NOT_INSTALLED != 0 ] || [ $LIBUSB_NOT_INSTALLED != 0 ] || $FFTW_NOT_INSTALLED != 0 ]; then
if [ $QTBASE_NOT_INSTALLED != 0 ] || [ $QTCHOOSER_NOT_INSTALLED != 0 ] || [ $QMAKE_NOT_INSTALLED != 0 ] || [ $QTDEV_NOT_INSTALLED != 0 ] || [ $LIBUSB_NOT_INSTALLED != 0 ] || [ $FFTW_NOT_INSTALLED != 0 ]; then
sudo apt-get update
sudo apt-get install -y qt5-default
sudo apt-get install -y qtbase5-dev
sudo apt-get install -y qtchooser
sudo apt-get install -y qt5-qmake
sudo apt-get install -y qtbase5-dev-tools
sudo apt-get install -y libusb-1.0-0-dev
sudo apt-get install -y libfftw3-dev
else