Issues with the qt6 version in Ubuntu.
-
wrote on 13 Dec 2023, 00:39 last edited by
the system does not recognize the qmake command, even though it is installed correctly
-
wrote on 13 Dec 2023, 04:36 last edited by
Hi @JESS0440,
system does not recognize the qmake command
Modern Ubuntu's use a
qtchooser
package which sits in between things like theqmake
command, and the realqmake
. Consider, for example:$ which qmake /usr/bin/qmake $ ls -l /usr/bin/qmake lrwxrwxrwx 1 root root 9 Mar 23 2020 /usr/bin/qmake -> qtchooser
Here you can see that the
qmake
entry is actually a symbolic link toqtchooser
. Try, for example:qtchooser -print-env # See the current enabled version. qtchooser -list-versions # See which Qt versions are installed. export QT_SELECT=6 qtchooser -print-env # See the current enabled version. qmake -v
Read the qtchooser man page for more info.
Cheers.
-
@JESS0440 said in Issues with the qt6 version in Ubuntu.:
even though it is installed correctly
Where? And how was it installed? If you installed Qt using online installer, then you will need to provide absolute path to qmake or set PATH.
-
Hi @JESS0440,
system does not recognize the qmake command
Modern Ubuntu's use a
qtchooser
package which sits in between things like theqmake
command, and the realqmake
. Consider, for example:$ which qmake /usr/bin/qmake $ ls -l /usr/bin/qmake lrwxrwxrwx 1 root root 9 Mar 23 2020 /usr/bin/qmake -> qtchooser
Here you can see that the
qmake
entry is actually a symbolic link toqtchooser
. Try, for example:qtchooser -print-env # See the current enabled version. qtchooser -list-versions # See which Qt versions are installed. export QT_SELECT=6 qtchooser -print-env # See the current enabled version. qmake -v
Read the qtchooser man page for more info.
Cheers.
wrote on 13 Dec 2023, 19:14 last edited by JoeCFD@Paul-Colby qtchooser seems to be a deprecated tool.
@JESS0440 If you installed Qt with Qt Installer, it was installed by default under /opt/Qt and you need to set the path for the installed Qt. -
@Paul-Colby qtchooser seems to be a deprecated tool.
@JESS0440 If you installed Qt with Qt Installer, it was installed by default under /opt/Qt and you need to set the path for the installed Qt.wrote on 15 Dec 2023, 01:05 last edited by@JoeCFD said in Issues with the qt6 version in Ubuntu.:
@Paul-Colby qtchooser seems to be a deprecated tool.
Nah, it's definitely not deprecated (as far as I can tell), and will be in the next release of Ubuntu too: https://packages.ubuntu.com/search?keywords=qtchooser&searchon=names&suite=all§ion=all
qtchooser
is Ubuntu's solution for installing multiple Qt versions from the official Ubuntu servers, but does not apply to any versions installed via the Qt Online Installer. So , as you suggested, if @JESS0440 installed via the Qt Online Installer, thenqtchooser
is not relevant.As @jsulm asked, we need to know:
Where? And how was it installed?
:)
-
@JoeCFD said in Issues with the qt6 version in Ubuntu.:
@Paul-Colby qtchooser seems to be a deprecated tool.
Nah, it's definitely not deprecated (as far as I can tell), and will be in the next release of Ubuntu too: https://packages.ubuntu.com/search?keywords=qtchooser&searchon=names&suite=all§ion=all
qtchooser
is Ubuntu's solution for installing multiple Qt versions from the official Ubuntu servers, but does not apply to any versions installed via the Qt Online Installer. So , as you suggested, if @JESS0440 installed via the Qt Online Installer, thenqtchooser
is not relevant.As @jsulm asked, we need to know:
Where? And how was it installed?
:)
wrote on 15 Dec 2023, 14:27 last edited by JoeCFD@Paul-Colby I am not sure it is usable even when it is built. For example, Qt Gstreamer is built, but not usable anymore since its development is stopped. I do not use qt chooser.
1/6