歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 宿主機上安裝 Qt-4.8.1-x11-x86

宿主機上安裝 Qt-4.8.1-x11-x86

日期:2017/2/28 15:43:43   编辑:Linux教程
#Platform: Linux Ubuntu 3.2.0-23-generic-pae
#36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux

#Steps:
#解壓
tar xzf qt-everywhere-opensource-src-4.8.1.tar.gz
#重命名
mv qt-everywhere-opensource-src-4.8.1 qt-x11-x86-src-4.8.1 && cd qt-x11-x86-src-4.8.1
#配置
./configure -no-qt3support
#編譯和安裝
make && sudo make install
#添加用戶環境變量
echo PATH=/usr/local/Trolltech/Qt-4.8.1/bin:$PATH >> ~/.bashrc
#使用戶環境變量生效
source .bashrc
#查看qmake的版本
qmake -version

#or simpily:
sudo apt-get install qtcreator
Copyright © Linux教程網 All Rights Reserved