Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issues with the qt6 version in Ubuntu.
Forum Updated to NodeBB v4.3 + New Features

Issues with the qt6 version in Ubuntu.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 841 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.
  • J Offline
    J Offline
    JESS0440
    wrote on last edited by
    #1

    the system does not recognize the qmake command, even though it is installed correctly

    Paul ColbyP jsulmJ 2 Replies Last reply
    0
    • J JESS0440

      the system does not recognize the qmake command, even though it is installed correctly

      Paul ColbyP Offline
      Paul ColbyP Offline
      Paul Colby
      wrote on last edited by
      #2

      Hi @JESS0440,

      system does not recognize the qmake command

      Modern Ubuntu's use a qtchooser package which sits in between things like the qmake command, and the real qmake. 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 to qtchooser. 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.

      JoeCFDJ 1 Reply Last reply
      1
      • J JESS0440

        the system does not recognize the qmake command, even though it is installed correctly

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

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

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • Paul ColbyP Paul Colby

          Hi @JESS0440,

          system does not recognize the qmake command

          Modern Ubuntu's use a qtchooser package which sits in between things like the qmake command, and the real qmake. 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 to qtchooser. 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.

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

          @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 ColbyP 1 Reply Last reply
          0
          • JoeCFDJ 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 ColbyP Offline
            Paul ColbyP Offline
            Paul Colby
            wrote on last edited by
            #5

            @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&section=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?

            :)

            JoeCFDJ 1 Reply Last reply
            0
            • Paul ColbyP Paul Colby

              @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&section=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?

              :)

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

              @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 Reply Last reply
              0

              • Login

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