Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. "No QML utility installed" not letting me use Qt6
Forum Updated to NodeBB v4.3 + New Features

"No QML utility installed" not letting me use Qt6

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 4 Posters 8.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MH24
    wrote on last edited by MH24
    #1

    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 says No QML Utility Installed. Have a look:
    Screenshot from 2023-05-19 15-29-18.png

    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 directories mkspecs and plugins and a qt6.conf.
    The file qt6.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:
    Screenshot from 2023-05-19 15-39-28.png

    Qt 5.15.3 works just fine but I need a kit with a working Qt 6 to be able to use QPromise

    sierdzioS 1 Reply Last reply
    0
    • M MH24

      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 says No QML Utility Installed. Have a look:
      Screenshot from 2023-05-19 15-29-18.png

      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 directories mkspecs and plugins and a qt6.conf.
      The file qt6.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:
      Screenshot from 2023-05-19 15-39-28.png

      Qt 5.15.3 works just fine but I need a kit with a working Qt 6 to be able to use QPromise

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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

      (Z(:^

      M 1 Reply Last reply
      1
      • sierdzioS sierdzio

        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

        M Offline
        M Offline
        MH24
        wrote on last edited by
        #3

        @sierdzio I did use Qt Installer with Qt 6 but I had issues getting qmake to run so I shifted to cmake and Qt5. Thank you for the link to QPromise. I will try this and the standard's original std::promise and future too.

        sierdzioS JoeCFDJ 2 Replies Last reply
        0
        • M MH24

          @sierdzio I did use Qt Installer with Qt 6 but I had issues getting qmake to run so I shifted to cmake and Qt5. Thank you for the link to QPromise. I will try this and the standard's original std::promise and future too.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @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.

          (Z(:^

          1 Reply Last reply
          0
          • M MH24

            @sierdzio I did use Qt Installer with Qt 6 but I had issues getting qmake to run so I shifted to cmake and Qt5. Thank you for the link to QPromise. I will try this and the standard's original std::promise and future too.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            @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...

            sierdzioS 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @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...

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @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.

              (Z(:^

              JoeCFDJ 1 Reply Last reply
              0
              • sierdzioS sierdzio

                @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.

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #7

                @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

                sierdzioS 1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @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

                  sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  @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.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • X Offline
                    X Offline
                    Xmojtabw
                    wrote on last edited by
                    #9

                    I have exactly the same problem
                    sudo apt install qml-qt6
                    solved the problem for me

                    1 Reply Last reply
                    5

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved