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. Upgrading from QT 5.12.8 to 5.15
Forum Updated to NodeBB v4.3 + New Features

Upgrading from QT 5.12.8 to 5.15

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 5 Posters 7.4k 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.
  • G Offline
    G Offline
    GargDivanshu
    wrote on last edited by
    #1

    I am currently working on QT 5.12, but application i want to compile is available on QT 5.15.2, and i find myself unable to upgrade it Can anyone pls help me. Every time i try it just breaks something.
    I am on WSL2 Ubuntu 20.04

    QT error.PNG

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

      Looks like there are still development packages for Qt 5.12 around - upgrade them to 5.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
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @GargDivanshu said in Upgrading from QT 5.12.8 to 5.15:

        QT 5.15.2

        Install QT 5.15.2 under /opt/Qt and set its path for your cmake.
        export Qt5_DIR=/opt/Qt/5.15.2/gcc_64/lib/cmake/Qt5
        or
        export QT_DIR=/opt/Qt/5.15.2/gcc_64
        export PATH=$QT_DIR/bin:$PATH /* this will override Qt 5.12.8 */
        in .bashrc file

        G 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @GargDivanshu said in Upgrading from QT 5.12.8 to 5.15:

          QT 5.15.2

          Install QT 5.15.2 under /opt/Qt and set its path for your cmake.
          export Qt5_DIR=/opt/Qt/5.15.2/gcc_64/lib/cmake/Qt5
          or
          export QT_DIR=/opt/Qt/5.15.2/gcc_64
          export PATH=$QT_DIR/bin:$PATH /* this will override Qt 5.12.8 */
          in .bashrc file

          G Offline
          G Offline
          GargDivanshu
          wrote on last edited by
          #4

          @JoeCFD Can you pls send a link for tutorial ans or a video, coz i am unable to do as you mentioned.

          JoeCFDJ 1 Reply Last reply
          0
          • M Offline
            M Offline
            mchinand
            wrote on last edited by mchinand
            #5

            How did you install the newer version of Qt? Where is it located in the filesystem?

            1 Reply Last reply
            0
            • G GargDivanshu

              @JoeCFD Can you pls send a link for tutorial ans or a video, coz i am unable to do as you mentioned.

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

              @GargDivanshu
              download qt-unified-linux-x64-online.run from
              https://download.qt.io/official_releases/online_installers/
              and install QT 5.15.2 into /opt/Qt

              G 1 Reply Last reply
              1
              • JoeCFDJ JoeCFD

                @GargDivanshu
                download qt-unified-linux-x64-online.run from
                https://download.qt.io/official_releases/online_installers/
                and install QT 5.15.2 into /opt/Qt

                G Offline
                G Offline
                GargDivanshu
                wrote on last edited by
                #7

                @JoeCFD i tried finding opt/QT in my system, but not able to find. Actually I am on WSL2 so is it really the correct way for me to upgrade to 5.15.2?

                JoeCFDJ M 2 Replies Last reply
                0
                • G GargDivanshu

                  @JoeCFD i tried finding opt/QT in my system, but not able to find. Actually I am on WSL2 so is it really the correct way for me to upgrade to 5.15.2?

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

                  @GargDivanshu it is /opt and you create Qt dir inside /opt with command: sudo mkdir Qt.
                  You actually do not need it. I believe Qt installer has /opt/Qt as default install dir.

                  jsulmJ 1 Reply Last reply
                  0
                  • G GargDivanshu

                    @JoeCFD i tried finding opt/QT in my system, but not able to find. Actually I am on WSL2 so is it really the correct way for me to upgrade to 5.15.2?

                    M Offline
                    M Offline
                    mchinand
                    wrote on last edited by
                    #9

                    @GargDivanshu

                    1. Download qt-unified-linux-x64-online.run
                    2. Go to your download directory
                    3. run chmod +x qt-unified-linux-x64-online.run
                    4. run sudo ./qt-unified-linux-x64-online.run
                    5. Install Qt 5.15.2 (or whatever version), it should automatically install it in /opt/Qt

                    I should start a Qt-related TikTok channel.

                    G 1 Reply Last reply
                    1
                    • M mchinand

                      @GargDivanshu

                      1. Download qt-unified-linux-x64-online.run
                      2. Go to your download directory
                      3. run chmod +x qt-unified-linux-x64-online.run
                      4. run sudo ./qt-unified-linux-x64-online.run
                      5. Install Qt 5.15.2 (or whatever version), it should automatically install it in /opt/Qt

                      I should start a Qt-related TikTok channel.

                      G Offline
                      G Offline
                      GargDivanshu
                      wrote on last edited by
                      #10

                      @mchinand ya do make TikTok videos or Youtube shorts, these technologies do require such content ;p

                      1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        @GargDivanshu it is /opt and you create Qt dir inside /opt with command: sudo mkdir Qt.
                        You actually do not need it. I believe Qt installer has /opt/Qt as default install dir.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @JoeCFD said in Upgrading from QT 5.12.8 to 5.15:

                        You actually do not need it. I believe Qt installer has /opt/Qt as default install dir.

                        By default the installer installs in home folder: /home/USER_NAME/Qt

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

                        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