[关闭]
@breakerthb 2017-03-07T09:40:06.000000Z 字数 1036 阅读 2259

Qt Creator安装

Linux IDE Tools


Download

QT

list : http://download.qt.io/archive/qt/

http://download.qt.io/archive/qt/4.8/4.8.6/
http://download.qt.io/archive/qt/5.8/5.8.0/

找到需要的包下载。

Qt Creator

list : http://download.qt.io/official_releases/qtcreator

http://download.qt.io/official_releases/qtcreator/2.6/2.6.1/
http://download.qt.io/official_releases/qtcreator/4.2

PS: Qt Creator 3.4.2版本之后的版本需要注册信息。

Ubuntu Install

1. QT(qmake)环境安装

$ sudo apt-get install g++
    $ ./qt-opensource-linux-x64-5.8.0.run

弹出安装界面,输入安装路径直到安装结束。

$ qmake
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

修改qt默认文件:

$ vi /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf

修改为qt安装路径:

/opt/Qt5.8.0/5.8/gcc_64/bin
/opt/Qt5.8.0

验证:

$ qmake -v

出现帮助信息,说明安装成功。

2. 安装Qt Creator

$ sudo apt-get install qtcreator

$ ./qt-creator-opensource-linux-x86_64-4.2.1.run 

弹出界面安装。如果出现:

QXcbConnection: Could not connect to display 
Aborted (core dumped)

说明当前shell无法弹出可视化界面。

运行:

$ whereis qtcreator
    $ qtcreator

3. 创建桌面快捷方式

$ ln -s /usr/bin/qtcreator Desktop/qtcreator

CentOS Install

ref:http://www.cnblogs.com/lit10050528/p/3936589.html

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注