Problem in setting up QT on Linux Ubuntu (wsl2)
-
hey, I am new to QT.
working on windows 10 X 64I was installing QT on my system, coz I wanted to contribute to an organization who was making a desktop Application.
Here is the link for the IMG showing what the error is.
Pls help me out.
PS:- Sorry I believe my ques was not framed well. I am working on WSL2 Ubuntu 20.04 LTS. QT version i was trying to install was 5.7, earlier i tried V 4 series,but every time it was giving issues in installation -
Which Qt version have you installed and how?
Which executable is crashing? Please post the stack
trace here. -
Problem in setting up QT on Linux Ubuntu
working on windows 10 X 64
How does this work?
-
OP is setting up Qt inside a Windows Subsystem for Linux (Ubuntu) on Windows.
The installer seems to be Qt 5.7 -
@ChrisW67 said in Problem in setting up QT on Linux Ubuntu:
OP is setting up Qt inside a Windows Subsystem for Linux (Ubuntu) on Windows.
Ohhhh, would be nice if they mentioned this!
-
It seems to be possible at least in some environments under Windows 111 according to this thread. Little detail on the required sacrifices to the Windows deities.
-
@ChrisW67 said in Problem in setting up QT on Linux Ubuntu:
under Windows 111
A future version of Windows in 100 years time? ;-)
I would ask @GargDivanshu what version of Ubuntu he is installing and whether it wouldn't be easiest if he accepted the version of Qt issued with that Ubuntu rather than building one? But we don't know what Ubuntu or where he got/chose Qt 5.7 from....
-
@JonB I never knew that we get a version of QT issued with our Ubuntu, How do i check it? and will it solve my issue as i am on Windows 10, WSL 2, Ubuntu 20.04, and not entirely on Linux system.
-
@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
-
@JonB Thank you very much I was able to move forward.
-
@JonB well though i was able to download 5.12 but my application can't work on this versi0on and requires 5.15. If you don't mind can you help me out ?
-
@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. -
@JonB Ubuntu upgrade is not needed. I have 5.15.2 on Ubuntu 18.04. You can install a few Qt versions on the same machine. Not sure why he made two threads.
https://forum.qt.io/topic/139499/upgrading-from-qt-5-12-8-to-5-15/6 -
@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?
2/18