How to upgrade Qt installed in linux from one version to higher
While porting Qt project from windows to linux(ubuntu) i faced with the following issue:
on windows Qt version 4.8.1 is installed on linux 4.6.3 in which some functionalities availiable in higer version 4.8.1 don`t yet implemented (ex. QUdpSocket::joinMultiCastGroup ).
I see only one solution to this problem: upgrade Qt version on linux to 4.8.1. How can I do this?
On linux I got installed libqt4-dev, qmake.
Solved: I changed repository from squeeze (stable) to wheezy(testing) , in wheezy latest Qt version is 4.8.1, which is perfectly suits my needs.
Using package manager I found package libqt4-dev and selected it for update . That is all, the whole process took 5 minutes.
Disadvantages: - As I run Debian on Virtual Box after changing repository I had to reinstall guest additions - wheezy is less stable than squeeze (I haven`t faced yet with stablilty problem)
apt-get install(upgrade) libqt4-dev
if you using Debian based system. This depends on the distro you are using. If there are binary packages for your distro you can update through your package manager. Otherwise you have to download the source of your prefered Qt version and build it yourself.
链接地址: http://www.djcxy.com/p/64244.html上一篇: 如何处理导致异常的WinRT异常?