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. Can't update Qt from 5.12 to 5.15
Qt 6.11 is out! See what's new in the release blog

Can't update Qt from 5.12 to 5.15

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 4 Posters 2.0k Views
  • 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.
  • K Offline
    K Offline
    kimi.raikkonen
    wrote on last edited by
    #1

    Hi, I have Qt 5.12 in my Ubuntu PC. But I have to update it to 5.15. So, I downloaded 5.15 and installed it but when I type qmake --version to Konsole, it still shows 5.12 and I cannot run the application I want.

    To download and build, I followed the instructions here. I'm not using Qt Online Installer.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You have to make sure you call the correct qmake from the newly installed Qt version by e.g. extending your PATH environment variable or using the absolute path to the correct qmake executable.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kimi.raikkonen
        wrote on last edited by
        #3

        Thanks for the reply. Ok, my Qt5 libs are located at the following path. So, I extended my PATH by:

        export PATH=$PATH:/usr/lib/x86_64-linux-gnu
        

        Then I did qmake --version again, still shows 5.12.

        Christian EhrlicherC 1 Reply Last reply
        0
        • K kimi.raikkonen

          Thanks for the reply. Ok, my Qt5 libs are located at the following path. So, I extended my PATH by:

          export PATH=$PATH:/usr/lib/x86_64-linux-gnu
          

          Then I did qmake --version again, still shows 5.12.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @kimi-raikkonen said in Can't update Qt from 5.12 to 5.15:

          Then I did qmake --version again, still shows 5.12.

          Because you added your path at the end and the other qmake is in a directory before yours so this is picked up.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kimi.raikkonen
            wrote on last edited by
            #5

            All right. In order to put the directory before others, these are my last steps:

            1) $ export PATH=/usr/lib/x86_64-linux-gnu
            2) $ qmake --version

            Command 'qmake' is available in the following places

            • /bin/qmake
            • /usr/bin/qmake
              The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
              qmake: command not found

            3) So, I added /usr/bin:/bin by

            $ export PATH=$PATH:/usr/bin:/bin
            

            4) qmake --version again and nothing happened. Qt version is still 5.12.

            $ echo $PATH shows:

            /usr/lib/x86_64-linux-gnu:/usr/bin:/bin
            
            JoeCFDJ 1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I doubt you installed your new Qt to /usr - at least i hope you did not do it. Add the correct path to your qmake from Qt5.15

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0
              • O Offline
                O Offline
                odelaune
                wrote on last edited by
                #7

                How did you install Qt 5.15 ? With configure? With cmake? Other way?
                During the installation, did you set a specific directory where to install Qt 5.15?

                1 Reply Last reply
                0
                • K kimi.raikkonen

                  All right. In order to put the directory before others, these are my last steps:

                  1) $ export PATH=/usr/lib/x86_64-linux-gnu
                  2) $ qmake --version

                  Command 'qmake' is available in the following places

                  • /bin/qmake
                  • /usr/bin/qmake
                    The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
                    qmake: command not found

                  3) So, I added /usr/bin:/bin by

                  $ export PATH=$PATH:/usr/bin:/bin
                  

                  4) qmake --version again and nothing happened. Qt version is still 5.12.

                  $ echo $PATH shows:

                  /usr/lib/x86_64-linux-gnu:/usr/bin:/bin
                  
                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #8

                  @kimi-raikkonen install Qt5.15 under /opt/Qt(this is the default installation of Qt installer). Add its qmake path in front of other paths
                  for example:
                  export PATH=/opt/Qt/5.15.2/gcc_64/bin:$PATH
                  this has to be set in your shell which will trigger the setting whenever you open a terminal.
                  Or you purge 5.12 and the path order will not matter anymore.

                  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