Update Qt from 5.5.1 to 5.6.0
-
Hi
I need to update Qt Version from 5.5.1 to 5.6.0 on my system. I currently use KUbuntu 16.04.
Could you please tell me how to update?Do I need to completely remove 5.5.1 and install 5.6.0 from scratch?
Thank you in advance!
@Swati Or did you use offline or online Qt installer?
If you used the packages from Kubuntu and want to continue to use their Qt packages then you will need to upgrade Kubuntu.
But actually you can just use Qt online installer and install latest Qt and QtCreator version. That is what I'm always doing.
You do not need to remove old Qt version. -
Hi,
Depends, how did you install Qt in the first place?
Did you use the packages from your repo?
Or did you download the sources and compiled Qt yourself?
-
Hi. I downloaded the source and compiled it myself.
Hi Swati,
In that case the choice is up to you. Do you need the older build for your applications or not? You can have both builds next to each other if you want.
Personally I like to clean up older builds completely and have a fresh start. The online installer might be a good choice as @jsulm suggested.Today Qt 5.9 was released and it LTS, unless you are forced to use Qt 5.6 I would recommend this latest version.
-
@Swati Or did you use offline or online Qt installer?
If you used the packages from Kubuntu and want to continue to use their Qt packages then you will need to upgrade Kubuntu.
But actually you can just use Qt online installer and install latest Qt and QtCreator version. That is what I'm always doing.
You do not need to remove old Qt version. -
Hi. I downloaded the source and compiled it myself.
Hi Swati,
In that case the choice is up to you. Do you need the older build for your applications or not? You can have both builds next to each other if you want.
Personally I like to clean up older builds completely and have a fresh start. The online installer might be a good choice as @jsulm suggested.Today Qt 5.9 was released and it LTS, unless you are forced to use Qt 5.6 I would recommend this latest version.
-
look for the file named "MaintenanceTool" in the folder where you installed Qt and run it.
You can select from the dialog which version and options you want. If you uncheck the 5.5 version, it will be deleted.
BTW there is some confusion here : you are using the online installer and not the sources.
-
look for the file named "MaintenanceTool" in the folder where you installed Qt and run it.
You can select from the dialog which version and options you want. If you uncheck the 5.5 version, it will be deleted.
BTW there is some confusion here : you are using the online installer and not the sources.
I've downloaded 653 MB file of Qt 5.6.2 for Linux 64 bit (offline installer) and then followed these steps: https://wiki.qt.io/Install_Qt_5_on_Ubuntu
Qt creator 5.6.2 is now running fine on system. But i've an issue. The application that requires Qt is still detecting 5.5.1 version. Could you please tell me how to fix that? (It looks for Qt version in usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake )
-
I've downloaded 653 MB file of Qt 5.6.2 for Linux 64 bit (offline installer) and then followed these steps: https://wiki.qt.io/Install_Qt_5_on_Ubuntu
Qt creator 5.6.2 is now running fine on system. But i've an issue. The application that requires Qt is still detecting 5.5.1 version. Could you please tell me how to fix that? (It looks for Qt version in usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake )
-
@Swati You just need to configure your kit in QtCreator properly.
Go to "Tools/Options.../Build & Run" and add your Qt 5.6 version there under "Qt Versions" and then configure a Kit with this Qt version. Then use this Kit. -
This is already added under auto-detected - Qt 5.6.2 GCC 64bit /home/swati/Qt5.6.2/5.6/gcc_64/bin/qmake Do I need to add anything else?
Under Kits, i says Desktop Qt 5.6.2 GCC 64bit (default) under auto-detected.
@Swati said in Update Qt from 5.5.1 to 5.6.0:
Desktop Qt 5.6.2 GCC 64bit (default)
is the correct Qt version selected in this kit?
Try to delete the build folder, execute qmake and build again. -
I've downloaded 653 MB file of Qt 5.6.2 for Linux 64 bit (offline installer) and then followed these steps: https://wiki.qt.io/Install_Qt_5_on_Ubuntu
Qt creator 5.6.2 is now running fine on system. But i've an issue. The application that requires Qt is still detecting 5.5.1 version. Could you please tell me how to fix that? (It looks for Qt version in usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake )
-
Hi and welcome to devnet,
Because you have to tell cmake where to find your other version of Qt. use
cmake -DCMAKE_PREFIX_PATH=/path/to/your/Qt/lib/cmake
so it can find it. -
Thank you.I got it
-
You're welcome !
Since that fixes your problem, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
I'm really sorry. I didn't open this thread and I'm not able to see that option also here on my screen!!. :/
-
I'm really sorry. I didn't open this thread and I'm not able to see that option also here on my screen!!. :/
@Veluri-Mithun
Fair enough :)
The original poster was not online for long time so i marked it solved.