Problem in setting up QT on Linux Ubuntu (wsl2)
-
@GargDivanshu said in Problem in setting up QT on Linux Ubuntu (wsl2):
Ubuntu 20.04
That has Qt 5.12.x, I think, it's what I have. It's fine, and a lot easier than building for yourself, till you need a future version :)
You fetch the packages with
apt-get
. Go into a terminal, do asudo -s
or typesudo
in front of each command.- Do a
apt-get update
first. - You may need
apt-get install build-essential
for compilers etc. - The base package is
apt-get install qt5-default
. I think that's all you need. - The Creator IDE is
apt-get install qtcreator
.
If you're ever not sure, type
apt-get install qt
and press Tab key twice to show all possible completions for available packages :) Don't you think Linux command-line like this is great, who needs a windowing system? ;-) - Do a
-
@GargDivanshu
If you can upgrade to Ubuntu 22.04 that seems to come with Qt 5.15, for you to verify? Else I imagine you will need to build Qt 5.15 yourself. -
@JoeCFD wrote:
download qt-unified-linux-x64-online.run from
https://download.qt.io/official_releases/online_installers/
and install QT 5.15.2 into /opt/Qt
Does the download include binaries already built for Ubuntu, like the Qt version you get from Ubuntu repo, or is it just sources you need to compile yourself?