Qt Creator安装
Linux IDE Tools
Download
QT
找到需要的包下载。
Qt Creator
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