47

In ubuntu20.04 qt5-default was the package name. So I tried the same and qt6-default in 22.04.

Then I tried apt-cache search qt which revealed (among many others): qt6-base-dev and qt5-base-dev.

I am unsure whether the new qt{version}-base-dev is the old qt5-default. If not: What is?

Natan
  • 1,059

5 Answers5

53

You need to install packages:

sudo apt install -y qtcreator qtbase5-dev qt5-qmake cmake

And you need to manually change the Qt version: screenshot how to manually change Qt version

Then you need to manually change Qt version in the Kits tab: screenshot on the Kits tab

Bilal
  • 357
  • 1
  • 8
  • 21
7

Starting with Ubuntu 22.04, you can use qt6-base, qt6-base-dev or qt6-tools-dev

Kiruahxh
  • 193
5

Why don't you install it with their online installer.

Once downloaded, chmod +x qt-unified-linux-<arch>-<version>-online.run then ./qt-unified-linux-<arch>-<version>-online.run

Logan
  • 51
0

For all who just want to install vulkan-sdk on Ubuntu 22.04 like I wanted, getting the error

The following packages have unmet dependencies:
 vulkancapsviewer : Depends: qt5-default but it is not installable

These instructions helped in my case: https://vulkan.lunarg.com/doc/sdk/1.3.236.0/linux/getting_started_ubuntu.html

wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install vulkan-sdk
0

I have had troubles with library on qt5 packages, so i have dicided to install qt6 packages and steps are here:

Install qt creator.

sudo apt install -y qtcreator

Also i have installed doc packages such:

sudo apt install -y qtcreator-data qtcreator-doc

For getting:

  • application data for Qt Creator IDE (qtcreator-data).
  • documentation for Qt Creator IDE (qtcreator-doc).

Install qt6-base-dev (it already has qmake6 and other packages for compiling).

sudo apt install -y qt6-base-dev

Also you can install examples for qtcreator of version 5:

https://stackoverflow.com/questions/45454072/make-qt-creator-to-see-examples-and-docs

It is probably old, but i don't find qtcreator for newier versions.

And finally personally i have had problems with my Qt creator - it have not seen automatically isntalled qmake so i did:

which qmake6

I get /usr/bin/qmake6 and then i manually add it to my configuraion (tools->kits->add) of project kit qtversion and everything works fine:

options screenshot