FFTW3 added to Raspberry Pi build script

This commit is contained in:
Chris Esposito 2021-11-15 15:16:06 +11:00 committed by GitHub
parent 591940b225
commit 90bc17a2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -5,14 +5,17 @@ dpkg -s qt5-default
QT5_NOT_INSTALLED=$?
dpkg -s libusb-1.0-0-dev
LIBUSB_NOT_INSTALLED=$?
dpkg -s libfftw3-dev
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 ]; then
if [ $QT5_NOT_INSTALLED != 0 ] || [ $LIBUSB_NOT_INSTALLED != 0 ] || $FFTW_NOT_INSTALLED != 0 ]; then
sudo apt-get update
sudo apt-get install qt5-default
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install -y libfftw3-dev
else
echo "Prerequesites are already installed. Skipping step."
fi