ubuntu下QT、qtcreator安装卸载与配置

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

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...