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

14

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
  • 18,075
  • 3
    I had issues with packages libqt4-core and libqt4-gui so I used this packages - sudo apt install libqtcore4 libqtgui4 – Devharsh Trivedi Nov 25 '20 at 17:12
  • sudo add-apt-repository ppa:rock-core/qt4 does not work on ubuntu 21.04. Is there a way to add that on the latest ubuntu? – Capaj Aug 18 '21 at 15:43
  • To make it work on 22.04, you need to edit /etc/apt/sources.list.d/rock-core-ubuntu-qt4-jammy.list and change 'jammy' to 'focal' – sashoalm Apr 20 '24 at 08:45
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

Shashank V M
  • 103
  • 4
Rmano
  • 32,217
  • 1
    I works!!! Thanks a lot nice developers. – Teso May 12 '21 at 18:44
  • Thanks! Can I suggest to add the word QUCS to the title to make it more search-friendly? @Teso – Rmano May 12 '21 at 20:31
  • 1
    Of course I will do that, thanks for the suggestion. – Teso May 12 '21 at 20:39
  • I also have a suggestion. The icons of QUCS could be adapted to dark themes. – Teso May 12 '21 at 20:46
  • Yes, but... QUCS is now an almost-one-man free time effort, and the most important thing is to get the qt5 port completed. I unfortunately have no c++ skills for helping... – Rmano May 13 '21 at 06:06
  • I would like to help but my programming skills are very limited. I hope that some nice developers will join this project. – Teso May 13 '21 at 07:58
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,251