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 831 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 13 Dec 2023, 00:39 last edited by
    #1

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

    P J 2 Replies Last reply 13 Dec 2023, 04:36
    0
    • J JESS0440
      13 Dec 2023, 00:39

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

      P Offline
      P Offline
      Paul Colby
      wrote on 13 Dec 2023, 04:36 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.

      J 1 Reply Last reply 13 Dec 2023, 19:14
      1
      • J JESS0440
        13 Dec 2023, 00:39

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

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 13 Dec 2023, 06:12 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
        • P Paul Colby
          13 Dec 2023, 04:36

          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.

          J Offline
          J Offline
          JoeCFD
          wrote on 13 Dec 2023, 19:14 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.

          P 1 Reply Last reply 15 Dec 2023, 01:05
          0
          • J JoeCFD
            13 Dec 2023, 19:14

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

            P Offline
            P Offline
            Paul Colby
            wrote on 15 Dec 2023, 01:05 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?

            :)

            J 1 Reply Last reply 15 Dec 2023, 14:27
            0
            • P Paul Colby
              15 Dec 2023, 01:05

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

              :)

              J Offline
              J Offline
              JoeCFD
              wrote on 15 Dec 2023, 14:27 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

              1/6

              13 Dec 2023, 00:39

              • Login

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