How to install the Qt6 version of the QML Runtime Tool?
-
As
github.com/qt/qtdoc/blob/6f57506953cc1efaf474368393ecb1df38c9f46a/doc/src/qmlapp/qml.qdoc
explains, theqml
tool has allowed me in the past (when developing with Qt5) to run.QML
files from the terminal, without needing to get IDE-specific stuff likegithub.com/orcun-gokbulut/qml-debug/blob/69b74cf92e547fb7383f8aa6f03ddea71fadfd4b/README.md#description
working.However, although installing
qt5-qtdeclarative-5.15.13-1.fc40
allows me to runqml
, I intend to utilize Qt6, andqt6-qtdeclarative-6.7.0-2.fc40
does not install theqml
binary toqEnvironmentVariable("PATH")
:-
#!/usr/bin/env sh dnf provides qml
-
dnf provides qml Updating and loading repositories: Fedora 41 - x86_64 - Updates 100% | 3.2 MiB/s | 26.1 MiB | 00m08s RPM Fusion for Fedora 41 - Free tainted 100% | 67.3 KiB/s | 16.4 KiB | 00m00s ProtonVPN Fedora Beta repository 100% | 76.3 KiB/s | 25.6 KiB | 00m00s RPM Fusion for Fedora 41 - Nonfree - Updates 100% | 429.4 KiB/s | 127.5 KiB | 00m00s warpdotdev 100% | 13.2 KiB/s | 4.1 KiB | 00m00s Fedora 41 - x86_64 100% | 3.1 MiB/s | 62.0 MiB | 00m20s Visual Studio Code 100% | 2.8 MiB/s | 6.2 MiB | 00m02s RPM Fusion for Fedora 41 - Nonfree tainted 100% | 83.6 KiB/s | 19.9 KiB | 00m00s google-chrome-canary 100% | 6.7 KiB/s | 7.6 KiB | 00m01s Fedora 41 openh264 (From Cisco) - x86_64 100% | 8.4 KiB/s | 8.6 KiB | 00m01s RPM Fusion for Fedora 41 - Nonfree 100% | 497.5 KiB/s | 297.0 KiB | 00m01s RPM Fusion for Fedora 41 - Free 100% | 883.9 KiB/s | 569.2 KiB | 00m01s Copr repo for Koi owned by birkch 100% | 10.1 KiB/s | 5.8 KiB | 00m01s RPM Fusion for Fedora 41 - Free - Updates 100% | 654.2 KiB/s | 187.1 KiB | 00m00s Repositories loaded. qt5-qtdeclarative-devel-5.15.15-1.fc41.i686 : Development files for qt5-qtdeclarative Repo : fedora Matched From : Filename : /usr/bin/qml qt5-qtdeclarative-devel-5.15.15-1.fc41.x86_64 : Development files for qt5-qtdeclarative Repo : fedora Matched From : Filename : /usr/bin/qml
Consequently, how am I to acquire the QML Runtime Tool for Qt6?
-
-
@RokeJulianLockhart, per
bugzilla.redhat.com/show_bug.cgi?id=2345428#c1
:The real binary is installed into
/usr/lib64/qt6/bin/qml
, and symlinked to/usr/bin
asqml-qt6
to not conflict with the Qt5 version. -
@BEEDELL-ROKE-JULIAN-LOCKHART said in How to install the Qt6 version of the QML Runtime Tool?:
does not install the qml binary to $PATH.
Does it install it in the bin directory of the Qt installation?
-
-
R RokeJulianLockhart has marked this topic as solved on
-
@RokeJulianLockhart, per
bugzilla.redhat.com/show_bug.cgi?id=2345428#c1
:The real binary is installed into
/usr/lib64/qt6/bin/qml
, and symlinked to/usr/bin
asqml-qt6
to not conflict with the Qt5 version. -
R RokeJulianLockhart has marked this topic as solved on