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. Qt 5.14+ on ubunut 20.04
Qt 6.11 is out! See what's new in the release blog

Qt 5.14+ on ubunut 20.04

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 1.3k 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.
  • X Offline
    X Offline
    xdgbsdb
    wrote on last edited by
    #1

    Hi,

    i've installed QT 5.15 to /opt/ in Ubuntu 20.04. I've also added /opt/Qt/5.15.2/ to my PATH.

    Running qtdiag continues to show the older version installed. 5.12.x.

    I've seen warnings not to simply delete an existing Qt installation, so haven't tried that yet.

    With /opt/ at the front of my PATH I would have hoped the newer version is what would be picked up.

    thank you for any suggestions about how I can upgrade Qt.

    for what i am doing I need QRecursivemutex, which means 5.14 or greater.

    thanks!

    SGaistS JoeCFDJ 2 Replies Last reply
    0
    • X xdgbsdb

      Hi,

      i've installed QT 5.15 to /opt/ in Ubuntu 20.04. I've also added /opt/Qt/5.15.2/ to my PATH.

      Running qtdiag continues to show the older version installed. 5.12.x.

      I've seen warnings not to simply delete an existing Qt installation, so haven't tried that yet.

      With /opt/ at the front of my PATH I would have hoped the newer version is what would be picked up.

      thank you for any suggestions about how I can upgrade Qt.

      for what i am doing I need QRecursivemutex, which means 5.14 or greater.

      thanks!

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you trying to build your project on the command line ?
      If so, use the full path to the qmake executable of the Qt version you want to use.

      That's the proper way to build with different versions of Qt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X xdgbsdb

        Hi,

        i've installed QT 5.15 to /opt/ in Ubuntu 20.04. I've also added /opt/Qt/5.15.2/ to my PATH.

        Running qtdiag continues to show the older version installed. 5.12.x.

        I've seen warnings not to simply delete an existing Qt installation, so haven't tried that yet.

        With /opt/ at the front of my PATH I would have hoped the newer version is what would be picked up.

        thank you for any suggestions about how I can upgrade Qt.

        for what i am doing I need QRecursivemutex, which means 5.14 or greater.

        thanks!

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

        @xdgbsdb type command:
        which qmake
        and show the results here.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xdgbsdb
          wrote on last edited by
          #4

          Hi per the direction of a member of the QGIS dev mailing list, i've upgraded to ubunutu 22.04 which includes qt 5.15 and I'm tentatively all set.

          thank you for the responses!

          JoeCFDJ 1 Reply Last reply
          0
          • X xdgbsdb

            Hi per the direction of a member of the QGIS dev mailing list, i've upgraded to ubunutu 22.04 which includes qt 5.15 and I'm tentatively all set.

            thank you for the responses!

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

            @xdgbsdb ubunutu 23.04 is available as well. You can get a higher version of Qt there.

            X 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @xdgbsdb ubunutu 23.04 is available as well. You can get a higher version of Qt there.

              X Offline
              X Offline
              xdgbsdb
              wrote on last edited by
              #6

              @JoeCFD thanks that's good to know. The qgis nightly builds are using 22.04 so I copied that https://github.com/qgis/QGIS/blob/659a1366927bbefa64c95f982427f2a21e9be4d8/.docker/qgis3-qt5-build-deps.dockerfile#L2

              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