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

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...