Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Qt5 on Ubuntu 21.04

Tags:

ubuntu

qt

During previous Ubuntu releases, one could easily install Qt 5 by using:

sudo apt install qt5-default

qt5-default package is no longer included with Ubuntu 21.04.

How can I install the Qt 5 development package on Ubuntu 21.04?

like image 680
ramon Avatar asked May 03 '21 17:05

ramon


People also ask

How do I download Qt5 on Ubuntu?

Visit Qt downloads page an download a 32-bit or 64-bit Linux installation depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget. This is valid until 5.14. 2 due to policy change, distributing Open Source Qt linux package is discontinue from 5.15.

How do I download Qt5 in Linux?

Download the Qt installer from its official download site at https://www.qt.io/download-qt-installer. The site should detect that your computer is running linux and recommend "Qt Online Installer for linux". Click the green "Download" button to download the installer.

How do I change the QT version in Ubuntu?

Select Tools > Options > Build & Run > Qt Versions > Add. Select the qmake executable for the Qt version that you want to add. Select the Qt version to view and edit it. In the Version name field, edit the name that Qt Creator suggests for the Qt version. In the qmake location field, you can change the qmake location.

Where are Qt libraries Ubuntu?

The library files are usually in /usr/include/qt4 .

How do I download and install Qt on Ubuntu?

Open a terminal. Type the following command and hit Enter: sudo apt-get install qt5-default Qt 5.x will be installed. Visit Qt downloads page an download a 32-bit or 64-bit Linux installation depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget.

How can I install a qt5-default package without the Qt-default dependency?

Packages can be installed without the qt5-default dependency with: This will install the package. The solution is not perfect. apt knows the missing dependency and it will remove the package if you do an upgrade, for example. sudo apt -f install will remove the package. But this is ok if you just want to try the application.

What happened to qt5-default in Ubuntu 21?

qt5-default is removed from Ubuntu 21.04#194 Closed mahdi-lnopened this issue Jun 17, 2021· 0 comments Closed qt5-default is removed from Ubuntu 21.04#194

How do I install Ubuntu on Windows 10?

To start the installation process, you must open up a terminal window. To open up a terminal window on the Ubuntu Linux desktop, press Ctrl + Alt + T on the keyboard. Alternatively, search for “Terminal” in the app menu and open it up that way. Once the terminal window is open on the Ubuntu desktop, the installation can begin.


1 Answers

qt5-default package is missed in ubuntu 21.04 repository, so you should just install all base packages by yourself by running command below

sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
like image 110
Farshid616 Avatar answered Oct 22 '22 21:10

Farshid616