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. HOW to update ..5.9.9 to 5.15.2 ..safely...
Qt 6.11 is out! See what's new in the release blog

HOW to update ..5.9.9 to 5.15.2 ..safely...

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 1.4k Views 2 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    OK, I am not out of the woods...

    I have RUNNING 5.9.9. and need to add as existing project code build in 5.15.2
    In other words I need to UPDATE form 5.9 to 5.15.

    I do not see "update" option in 5.9.9

    Please suggest safest way to accomplish the task.
    I do not care if I have to rebuild existing project running in 5.9.9.

    The project build under 5.15.2 are more important.

    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2
      • in Project side panel, enable your 5.15.2 kit for this project
      • if you are using any build configuration flags, extra qmake arguments etc. copy them from your 5.9.9 kit settings
      • compile your project with 5.15.2 kit selected
      • if you see any compilation errors or new warnings, fix them (or post in forum so we can help you fix them)
      • if you need to support both 5.9 and 5.15 and there are some incomatibilities - #ifdef blocks need to be added to fix it, for example:
      #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
      // code compatible with 5.15
      #else
      // code compatible with 5.9
      #endif
      

      (Z(:^

      A 1 Reply Last reply
      0
      • sierdzioS sierdzio
        • in Project side panel, enable your 5.15.2 kit for this project
        • if you are using any build configuration flags, extra qmake arguments etc. copy them from your 5.9.9 kit settings
        • compile your project with 5.15.2 kit selected
        • if you see any compilation errors or new warnings, fix them (or post in forum so we can help you fix them)
        • if you need to support both 5.9 and 5.15 and there are some incomatibilities - #ifdef blocks need to be added to fix it, for example:
        #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
        // code compatible with 5.15
        #else
        // code compatible with 5.9
        #endif
        
        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @sierdzio
        in Project side panel, enable your 5.15.2 kit for this project
        have no 5.15.2 so

        After fresh
        sudo apt install qtcreator

        on latest clean Ubuntu 21.04
        I first check tools - options - kits
        and have NO entries here
        ( yes I now know any Qt install does EXPTEC OS to provide ...
        no problema as long as it it KNOWN up front....)

        As suggested I go to
        https://doc.qt.io/qt-5/linux.html
        and do

        sudo apt-get install build-essential libgl1-mesa-dev

        then reboot for good measure

        and check tools options kits again

        NO CHANGE - no kits no compiler nada nichevo

        sierdzioS JoeCFDJ 2 Replies Last reply
        0
        • A Anonymous_Banned275

          @sierdzio
          in Project side panel, enable your 5.15.2 kit for this project
          have no 5.15.2 so

          After fresh
          sudo apt install qtcreator

          on latest clean Ubuntu 21.04
          I first check tools - options - kits
          and have NO entries here
          ( yes I now know any Qt install does EXPTEC OS to provide ...
          no problema as long as it it KNOWN up front....)

          As suggested I go to
          https://doc.qt.io/qt-5/linux.html
          and do

          sudo apt-get install build-essential libgl1-mesa-dev

          then reboot for good measure

          and check tools options kits again

          NO CHANGE - no kits no compiler nada nichevo

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @AnneRanch said in HOW to update ..5.9.9 to 5.15.2 ..safely...:

          sudo apt install qtcreator

          So you don't have any Qt version installed, and you are not using the maintenance tool after all? Well then: install some Qt version (in whatever way you prefer. I guess you'll ignore any recommendation I may have anyway), then add it in Qt Creator options, create a Kit - and then proceed with my list of things to do from previous post.

          It's all so much easier when you install Qt through the maintenance tool...

          (Z(:^

          1 Reply Last reply
          1
          • A Anonymous_Banned275

            @sierdzio
            in Project side panel, enable your 5.15.2 kit for this project
            have no 5.15.2 so

            After fresh
            sudo apt install qtcreator

            on latest clean Ubuntu 21.04
            I first check tools - options - kits
            and have NO entries here
            ( yes I now know any Qt install does EXPTEC OS to provide ...
            no problema as long as it it KNOWN up front....)

            As suggested I go to
            https://doc.qt.io/qt-5/linux.html
            and do

            sudo apt-get install build-essential libgl1-mesa-dev

            then reboot for good measure

            and check tools options kits again

            NO CHANGE - no kits no compiler nada nichevo

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

            @AnneRanch
            on Linux:
            export QT_DIR=/opt/thirdParties/Qt/5.15.2/gcc_64 <==my Qt install location
            export PATH=$QT_DIR/bin:$PATH
            export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH
            Note that QT_DIR comes first to override 5.9.9
            you can also purge 5.9.9 from your machine and use 5.15.2 only if possible.

            If you do not set qt in the path, qt creator will not be able to see it.

            On Windows:
            simply switch to the install path of Qt in VC

            1 Reply Last reply
            1

            • Login

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