ubuntu14.04安装qt4.8.6

需要下载:qt-everywhere-opensource-src-4.8.6.tar.gz
http://pan.baidu.com/s/1eQ90t5w

一、sudo apt-get install build-essential
二、sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev
三、tar xvzf qt-everywhere-opensource-src-4.8.6.tar.gz
四、./configure
五、make
六、make install
七、在/etc/profile末尾添加
export PATH=/usr/local/Trolltech/Qt-4.8.6/bin:$PATH
八、sudo ln -s /usr/local/Trolltech/Qt-4.8.6/bin/qmake /usr/lib/i386-linux-gnu/qt4/bin/qmake

参考:http://blog.csdn.net/qust_waiwai/article/details/43868735

你可能感兴趣的:(笔记)