mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
QtTermTCP - Upgraded to QtTermTCP 0.0.0.58. The binary is newer than the source code build. This version is needed to support VARA BPQ connections. VARA Terminal under ETC is not performing well.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 17 December 2024
|
||||
# Updated : 28 January 2025
|
||||
# Date : 3 February 2025
|
||||
# Purpose : Install QtTermTCP
|
||||
set -e
|
||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||
@@ -11,7 +10,7 @@ trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
||||
|
||||
APP=qttermtcp
|
||||
VERSION=latest
|
||||
DOWNLOAD_FILE=QtTermSource.zip
|
||||
DOWNLOAD_FILE=QtTermTCP
|
||||
BIN_FILE=QtTermTCP
|
||||
INSTALL_DIR="/opt/${APP}-${VERSION}"
|
||||
INSTALL_BIN_DIR="${INSTALL_DIR}/bin"
|
||||
@@ -21,7 +20,7 @@ et-log "Enabling i386 architecture support.."
|
||||
dpkg --add-architecture i386
|
||||
apt update
|
||||
|
||||
et-log "Installing QtTermTCP 32-bit build dependencies..."
|
||||
et-log "Installing QtTermTCP 32-bit build and runtime dependencies..."
|
||||
apt install \
|
||||
qtbase5-dev:i386 \
|
||||
qtbase5-dev-tools:i386 \
|
||||
@@ -33,18 +32,6 @@ apt install \
|
||||
qttools5-dev-tools:i386 \
|
||||
-y
|
||||
|
||||
et-log "Installing QtTermTCP build dependencies..."
|
||||
apt install \
|
||||
qtbase5-dev \
|
||||
qtbase5-dev-tools \
|
||||
qt5-qmake \
|
||||
qtchooser \
|
||||
qtmultimedia5-dev \
|
||||
libqt5serialport5-dev \
|
||||
libfftw3-dev \
|
||||
qttools5-dev-tools \
|
||||
-y
|
||||
|
||||
if [ ! -e ${ET_DIST_DIR}/${DOWNLOAD_FILE} ]; then
|
||||
|
||||
URL=http://www.cantab.net/users/john.wiseman/Downloads/${DOWNLOAD_FILE}
|
||||
@@ -52,23 +39,14 @@ if [ ! -e ${ET_DIST_DIR}/${DOWNLOAD_FILE} ]; then
|
||||
et-log "Downloading QtTermTCP: ${URL}"
|
||||
curl -s -L -o ${DOWNLOAD_FILE} --fail ${URL}
|
||||
|
||||
chmod 755 ${DOWNLOAD_FILE}
|
||||
mv -v ${DOWNLOAD_FILE} ${ET_DIST_DIR}
|
||||
fi
|
||||
|
||||
CWD_DIR=`pwd`
|
||||
|
||||
# Only build once
|
||||
if [ ! -e "${ET_SRC_DIR}/${APP}/${BIN_FILE}" ]; then
|
||||
cd ${ET_SRC_DIR}
|
||||
mkdir -v ${APP} && cd ${APP}
|
||||
unzip ${ET_DIST_DIR}/${DOWNLOAD_FILE}
|
||||
|
||||
et-log "Building QtTermTCP.."
|
||||
qmake && make
|
||||
fi
|
||||
|
||||
[ ! -e ${INSTALL_BIN_DIR} ] && mkdir -v -p ${INSTALL_BIN_DIR}
|
||||
cp -v "${ET_SRC_DIR}/${APP}/${BIN_FILE}" ${INSTALL_BIN_DIR}
|
||||
cp -v "${ET_DIST_DIR}/${DOWNLOAD_FILE}" ${INSTALL_BIN_DIR}
|
||||
|
||||
[ -e ${LINK_PATH} ] && rm ${LINK_PATH}
|
||||
ln -s ${INSTALL_DIR} ${LINK_PATH}
|
||||
|
||||
Reference in New Issue
Block a user