bloguetronica / cp2130-conf

CP2130 Configurator (cp2130-conf) is an application that can be used to configure CP2130 devices, including VID, PID, as well as other descriptors. Most importantly, the application allows you to configure pin functions and states.
GNU General Public License v3.0
1 stars 1 forks source link

The application will not install under Ubuntu/Kubuntu 21.04 or later #20

Closed samuelfmlourenco closed 2 years ago

samuelfmlourenco commented 2 years ago

Due to the fact that the package "qt5-default" is now obsolete since version Ubuntu/Kubuntu 21.04, the application will not install on new systems. The installation script will produce an error, and the application will fail to compile.

cp2130-conf-install-kubuntu-22 04lts

The workaround is to install a package named "qtbase5-dev" before running the script. It will produce the same error as before, but nonetheless it will compile. This will have to be tested in previous versions and in different Debian Linux distributions (fresh installations only), in order to approve this workaround as a definitive fix that can be implemented.

samuelfmlourenco commented 2 years ago

Tested the possibility of installing "qtbase5-dev" instead of "qt5-default", via the installation script. Although it works under Kubuntu versions 20.04 LTS and 22.04 LTS, this solution will not work under versions 16.04 LTS and 18.04 LTS. Therefore, another solution needs to be found regarding the fix to be implemented in "install.sh".

Meanwhile, the existing installation script can still be used when using Kubuntu 21.04 or above, if the recommendations in the opening post are followed.

samuelfmlourenco commented 2 years ago

Edited the installation script (install.sh). Code below:

#!/bin/sh

echo Obtaining required packages...
apt-get -qq update
apt-get -qq install build-essential
apt-get -qq install libusb-1.0-0-dev
apt-get -qq install qt5-default
apt-get -qq install qtbase5-dev
echo Copying source code files...
mkdir -p /usr/local/src/cp2130-conf/icons
mkdir -p /usr/local/src/cp2130-conf/misc
mkdir -p /usr/local/src/cp2130-conf/translations
cp -f src/aboutdialog.cpp /usr/local/src/cp2130-conf/.
cp -f src/aboutdialog.h /usr/local/src/cp2130-conf/.
cp -f src/aboutdialog.ui /usr/local/src/cp2130-conf/.
cp -f src/configuration.cpp /usr/local/src/cp2130-conf/.
cp -f src/configuration.h /usr/local/src/cp2130-conf/.
cp -f src/configuratorwindow.cpp /usr/local/src/cp2130-conf/.
cp -f src/configuratorwindow.h /usr/local/src/cp2130-conf/.
cp -f src/configuratorwindow.ui /usr/local/src/cp2130-conf/.
cp -f src/cp2130-conf.pro /usr/local/src/cp2130-conf/.
cp -f src/cp2130.cpp /usr/local/src/cp2130-conf/.
cp -f src/cp2130.h /usr/local/src/cp2130-conf/.
cp -f src/GPL.txt /usr/local/src/cp2130-conf/.
cp -f src/icons/active64.png /usr/local/src/cp2130-conf/icons/.
cp -f src/icons/cp2130-conf.png /usr/local/src/cp2130-conf/icons/.
cp -f src/icons/greyed64.png /usr/local/src/cp2130-conf/icons/.
cp -f src/icons/icon.svg /usr/local/src/cp2130-conf/icons/.
cp -f src/icons/selected64.png /usr/local/src/cp2130-conf/icons/.
cp -f src/informationdialog.cpp /usr/local/src/cp2130-conf/.
cp -f src/informationdialog.h /usr/local/src/cp2130-conf/.
cp -f src/informationdialog.ui /usr/local/src/cp2130-conf/.
cp -f src/LGPL.txt /usr/local/src/cp2130-conf/.
cp -f src/libusb-extra.c /usr/local/src/cp2130-conf/.
cp -f src/libusb-extra.h /usr/local/src/cp2130-conf/.
cp -f src/main.cpp /usr/local/src/cp2130-conf/.
cp -f src/mainwindow.cpp /usr/local/src/cp2130-conf/.
cp -f src/mainwindow.h /usr/local/src/cp2130-conf/.
cp -f src/mainwindow.ui /usr/local/src/cp2130-conf/.
cp -f src/misc/cp2130-conf.desktop /usr/local/src/cp2130-conf/misc/.
cp -f src/nonblocking.cpp /usr/local/src/cp2130-conf/.
cp -f src/nonblocking.h /usr/local/src/cp2130-conf/.
cp -f src/README.txt /usr/local/src/cp2130-conf/.
cp -f src/resources.qrc /usr/local/src/cp2130-conf/.
cp -f src/translations/cp2130-conf_en.qm /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_en.ts /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_en_US.qm /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_en_US.ts /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_pt.qm /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_pt.ts /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_pt_PT.qm /usr/local/src/cp2130-conf/translations/.
cp -f src/translations/cp2130-conf_pt_PT.ts /usr/local/src/cp2130-conf/translations/.
echo Building and installing application...
cd /usr/local/src/cp2130-conf
qmake
make install clean
rm -f cp2130-conf
echo Done!