"No QML utility installed" not letting me use Qt6
-
Hi,
Wanted to use
QPromise
on my Qt Project. It needs Qt6 while I have Qt 5.15.3 on my QtCreator 6.02, with qmake 3.1. I am on a Ubuntu 22.04.So I went to
Tools
->Options
->Kits
->Qt Versions
and tried to add qmake executable but it saysNo QML Utility Installed
. Have a look:
find /usr -iname qt6
gives me:/usr/include/x86_64-linux-gnu/qt6 /usr/lib/x86_64-linux-gnu/qt6 /usr/lib/x86_64-linux-gnu/cmake/Qt6 /usr/lib/qt6 /usr/share/qt6 /usr/share/qtcreator/qml/qmlpuppet/mockfiles/qt6
find /usr -iname qmake6
gives me:/usr/bin/qmake6 /usr/lib/qt6/bin/qmake6 /usr/share/lintian/overrides/qmake6 /usr/share/doc/qmake6
In the directory
/usr/lib/x86_64-linux-gnu/qt6
I dont have a qmake executable. I have directoriesmkspecs
andplugins
and aqt6.conf
.
The fileqt6.conf
has contents:[Paths] Prefix=/usr ArchData=lib/x86_64-linux-gnu/qt6 Binaries=lib/qt6/bin Data=share/qt6 Documentation=share/qt6/doc Headers=include/x86_64-linux-gnu/qt6 HostBinaries=lib/qt6/bin HostData=lib/x86_64-linux-gnu/qt6 HostLibraries=lib/x86_64-linux-gnu Libraries=lib/x86_64-linux-gnu LibraryExecutables=lib/x86_64-linux-gnu/qt6/mkspecs Plugins=lib/x86_64-linux-gnu/qt6/plugins Qml2Imports=lib/x86_64-linux-gnu/qt6/qml Settings=/etc/xdg Translations=share/qt6/translations
qtdiag
gives me:Qt 5.15.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.3.0) on "xcb" OS: Ubuntu 22.04.2 LTS [linux version 5.19.0-35-generic] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 Environment: Features: QT_NO_EXCEPTIONS Library info: PrefixPath: /usr DocumentationPath: /usr/share/qt5/doc HeadersPath: /usr/include/x86_64-linux-gnu/qt5 LibrariesPath: /usr/lib/x86_64-linux-gnu LibraryExecutablesPath: /usr/lib/x86_64-linux-gnu/qt5/libexec BinariesPath: /usr/lib/qt5/bin PluginsPath: /usr/lib/x86_64-linux-gnu/qt5/plugins ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/imports Qml2ImportsPath: /usr/lib/x86_64-linux-gnu/qt5/qml ArchDataPath: /usr/lib/x86_64-linux-gnu/qt5 DataPath: /usr/share/qt5 TranslationsPath: /usr/share/qt5/translations ExamplesPath: /usr/lib/x86_64-linux-gnu/qt5/examples TestsPath: /usr/tests SettingsPath: /etc/xdg Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */root/Desktop* DocumentsLocation: "Documents" */root/Documents* FontsLocation: "Fonts" */root/.local/share/fonts* /root/.fonts /usr/local/share/fonts /usr/share/fonts ApplicationsLocation: "Applications" */root/.local/share/applications* /usr/local/share/applications /usr/share/applications MusicLocation: "Music" */root/Music* MoviesLocation: "Movies" */root/Videos* PicturesLocation: "Pictures" */root/Pictures* TempLocation: "Temporary Directory" */tmp* HomeLocation: "Home" */root* AppLocalDataLocation: "Application Data" */root/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag CacheLocation: "Cache" */root/.cache/QtProject/qtdiag* GenericDataLocation: "Shared Data" */root/.local/share* /usr/local/share /usr/share RuntimeLocation: "Runtime" */tmp/runtime-root* ConfigLocation: "Configuration" */root/.config* /etc/xdg DownloadLocation: "Download" */root/Downloads* GenericCacheLocation: "Shared Cache" */root/.cache* GenericConfigLocation: "Shared Configuration" */root/.config* /etc/xdg AppDataLocation: "Application Data" */root/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag AppConfigLocation: "Application Configuration" */root/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag
I cannot
Link with Qt..
either. When I press that button and take it to Qt executable, the buttons remain disabled.
See:
Qt 5.15.3 works just fine but I need a kit with a working Qt 6 to be able to use
QPromise
-
These are very unusual paths for a Qt installation. Best use the Qt online installer, it works with multiple versions of Qt and is well tested.
If you want to use QtPromise with Qt 5, take a look at: https://github.com/simonbrunel/qtpromise
-
@MH24 said in "No QML utility installed" not letting me use Qt6:
I did use Qt Installer with Qt 6 but I had issues getting qmake to run so I shifted to cmake and Qt5
You can install both Qt 5 and 6 using the installer.
-
@MH24 I guess you are using the Qt versions(Qt5.15.3 and Qt6.2.4) from Linux distributions. If you installed Qt from installer, default qt locations are normally under /opt/. Better to install Qt6.5 or above because Qt 6.2.4 is kind of old in Qt6.
type command:
which qml
to check if qml module is installed. If not, install qml module.If you install Qt from installer, qml module is available. Check the dir /opt/ and set qmake path properly on Kits->Qt Versions with qt path under /opt/Qt...
-
@JoeCFD said in "No QML utility installed" not letting me use Qt6:
If you installed Qt from installer, default qt locations are normally under /opt/
No need to install as root user. A normal installation is enough and then the default path is
/home/<username>/Qt
. -
@JoeCFD said in "No QML utility installed" not letting me use Qt6:
@sierdzio this place is not a good place because it is user name dependent. For deployment and team work, /opt is the traditional location for third party installation on Unix/Linux
Do you have multiple users on your system? I doubt that. Installing for current user is simpler.
For deployment people would typically use some CI/CD solution, where Qt is delivered in a different form anyway.
But of course, it's up to everybody to decide for themselves.