How to upgrade Qt installed on Linux from one version to a higher

When porting a Qt project from windows to linux (ubuntu), I ran into the following problem:

on Windows Qt, version 4.8.1 is installed on linux 4.6.3 , in which some functions available in the higher version 4.8.1 are not yet implemented (for example, QUdpSocket :: joinMultiCastGroup ).

I see only one solution to this problem: upgrade the Qt version on linux to 4.8.1. How can i do this?

On linux, I installed libqt4-dev, qmake.

+7
source share
3 answers

Solved: I changed the repository from compression (stable) to wheezy (testing) , in the latest version of Qt version 4.8.1, which is great for my needs.

Using the package manager , I found the libqt4-dev package and selected it for the update . That's all, the whole process took 5 minutes.

Disadvantages: - When I started Debian in Virtual Box after changing the repository, I had to reinstall guest add-ons - wheezy is less stable than compression (I have not encountered stablilty problem yet)

+3
source
  • I think you can use the Upgrade option in Qt Creator.
  • Or you can download the latest version from Download Qt, a cross-platform application platform
  • Or you can try upgrading with something like apt-get install(upgrade) libqt4-dev if you are using a Debian based system.
+1
source

It depends on the distribution used. If there are binary packages for your distribution, you can update them through the package manager. Otherwise, you need to download the source of your preferred version of Qt and create it yourself.

0
source

All Articles