@breakerthb
2017-03-07T09:40:06.000000Z
字数 1036
阅读 2352
Linux
IDE
Tools
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/
找到需要的包下载。
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版本之后的版本需要注册信息。
$ 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
出现帮助信息,说明安装成功。
$ 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
$ ln -s /usr/bin/qtcreator Desktop/qtcreator