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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值