From bf9eeff839b6ae23f1c8df893678b4acd748bfe5 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 24 Feb 2022 07:02:44 -0600 Subject: [PATCH] fix piqtsound and piqtterm for 64 bit OS --- functions/utility.function | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/functions/utility.function b/functions/utility.function index e5e755f..7b59e0f 100644 --- a/functions/utility.function +++ b/functions/utility.function @@ -212,8 +212,15 @@ TELNET() { ################################## PITERM() { cd ${DIR} || return + #determine if 32 or 64 bit and install correct dependencies. Thanks Ben,KU0HN! Reference: https://groups.io/g/bpq32/message/34486 + if [ `getconf LONG_BIT = '32' ]; then sudo apt install libqt5serialport5 - wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtTermTCP + else + sudo dpkg --add-architecture armhf + sudo apt update + sudo apt install -y libqt5widgets5:armhf libqt5serialport5:armhf libasound2:armhf libasound2-plugins:armhf + fi + wget --tries 2 --connect-timeout=60 https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtTermTCP sudo chmod +x piQtTermTCP sudo mv piQtTermTCP /usr/local/bin/ @@ -512,7 +519,14 @@ sudo mv /run/user/$UID/packetsearch.desktop /usr/share/applications/ #Documentation - https://www.cantab.net/users/john.wiseman/Documents/QtSoundModem.html QTSOUND(){ -sudo apt install -y libqt5serialport5 + #determine if 32 or 64 bit and install correct dependencies. Thanks Ben,KU0HN! Reference: https://groups.io/g/bpq32/message/34486 + if [ `getconf LONG_BIT = '32' ]; then + sudo apt install libqt5serialport5 + else + sudo dpkg --add-architecture armhf + sudo apt update + sudo apt install -y libqt5widgets5:armhf libqt5serialport5:armhf libasound2:armhf libasound2-plugins:armhf + fi cd ${HOME}/Downloads || return wget --tries 2 --connect-timeout=60 https://www.cantab.net/users/john.wiseman/Downloads/Beta/piQtSoundModem chmod +x piQtSoundModem