Upgrading from QT 5.12.8 to 5.15
-
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 -
Looks like there are still development packages for Qt 5.12 around - upgrade them to 5.15
-
@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 -
@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 -
@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. -
- Download
qt-unified-linux-x64-online.run
- Go to your download directory
- run
chmod +x qt-unified-linux-x64-online.run
- run
sudo ./qt-unified-linux-x64-online.run
- Install Qt 5.15.2 (or whatever version), it should automatically install it in /opt/Qt
I should start a Qt-related TikTok channel.
- Download
-
@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