Ubuntu – qt4 / libqt4-* in Ubuntu 20.04

20.04dependenciesqtqt4qt5

Ubuntu 20.04 dropped qt4 and all libqt4-* dependencies in its official repos. My knowledge about version conflict and install-breaking actions is limited, so before any unthoughtful action is taken, I would want the community's take about this.

Would it be possible to get qt4 to install on Ubuntu 20.04, and if so, which source would not end up breaking the install?

Alternatively, what container method would be the lightest for apps relying on qt4? My usecase for qt4 is solely for some Xilinx ISE components, nothing else, so the lightweight criteria is really important.

Best Answer

Adding this PPA repository to your system may solve.

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

Then run to install qt4.

sudo apt-get install libqtcore4