10

System: Kubuntu-64-bit 20.04 - AMD 64-bit machine
I`m trying to install Quite Universal Circuit Simulator from source code and get error:

configure: error: Qt >= 4.6.0 is required.
configure: error: ./configure failed for qucs

Try to install Qt-4 get error:

apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
E: Unable to locate package qt4-dev-tools
E: Package 'libqt4-dev' has no installation candidate
E: Unable to locate package libqt4-core
E: Unable to locate package libqt4-gui

How do I get this work?

Teso
  • 364

3 Answers3

15

The Qt4 framework has been removed from Ubuntu 20.04 main repository.

You can still get Qt4 libraries, adding the PPA rock-core/qt4

Run in a terminal:

sudo add-apt-repository ppa:rock-core/qt4

sudo apt update

And install the required Qt4 libraries by running command:

sudo apt install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui

or

sudo apt install qt4-dev-tools libqt4-dev libqtcore4 libqtgui4
Louis Go
  • 109
kyodake
  • 17,808
3

Although @kyodake answer is correct, there is good news:

  1. Nice developers are working on Qt5 port in the main site;

  2. I have concocted an AppImage version (alas, without manuals and probably not the best configured one, but it works) here: https://rmano.github.io/qucsAppImagesBuild/

You can just download the AppImage, make it executable with chmod +x, and run it.

enter image description here

Rmano
  • 32,167
1

@kyodake's answer worked for me in Ubuntu 22.04 after changing jammy to focal in /etc/apt/sources.list.d/rock-core-ubuntu-qt4-jammy.list

sudo add-apt-repository ppa:rock-core/qt4
sudo sed -i 's/jammy/focal/g' /etc/apt/sources.list.d/rock-core-ubuntu-qt4-jammy.list
sudo apt update
sudo apt install qt4-dev-tools libqt4-dev libqtcore4 libqtgui4

After that Qt4 installed and my project compiled!

sashoalm
  • 5,241