1. 安装方法
官网下载:http://qt-project.org/downloads
在当前目录下打开终端,执行./qt-opensource-linux-x64-5.8.0.run(这里写你下载的文件名)
忽略\[0] Warning: Could not create lock file '/home/dc/software-lib/lockmyApp1234865.lock': 权限不够
填写用户名时可以跳过,之后next即可
2. 卸载方法
to uninstall,I managed Go to the installation directory,there is an executable called MaintenanceTool,we need to run it,in order to uninstall and remove Qt.
what to do:
open terminal,
go to the installed directory,and then
run MaintenanceTools by the following command
./MaintenanceTool
and it is done.....
3问题
3.1 终端输入qtcreator提示
Already tracking action "Follow Symbol Under Cursor" under id 173
Cannot start '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory错误
安装完成后一般还要修改一些配置。
在命令行中输入:sudo vi /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf
打开default.conf文件,
将第一行改为bin目录的路径,第二行改为qt5.8.0目录的路径。
保存退出。之后输入qmake -v可以得到正确的version。
4. 設置命令行参数
参考:
http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html
http://www.cnblogs.com/emouse/archive/2013/01/29/2881721.html