HOW to update ..5.9.9 to 5.15.2 ..safely...
-
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
-
- 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 -
#ifdefblocks 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 -
- 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 -
#ifdefblocks 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@sierdzio
in Project side panel, enable your 5.15.2 kit for this project
have no 5.15.2 soAfter fresh
sudo apt install qtcreatoron 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 dosudo 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
-
@sierdzio
in Project side panel, enable your 5.15.2 kit for this project
have no 5.15.2 soAfter fresh
sudo apt install qtcreatoron 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 dosudo 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
@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...
-
@sierdzio
in Project side panel, enable your 5.15.2 kit for this project
have no 5.15.2 soAfter fresh
sudo apt install qtcreatoron 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 dosudo 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
@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