qt安装ROS环境

31 篇文章 16 订阅

之前都是在vscode上开发qt,如今想开发图形界面,折腾下qt
安装方式有好多种,最省心的就是这一种了,记录下:

一,下载qt_ros离线安装包

https://qtcreator-ros.datasys.swri.edu/downloads/installers/
选择文件
Ubuntu 18.04.2 LTS (Bionic Beaver)
Ubuntu 16.04.6 LTS (Xenial Xerus)
Ubuntu 14.04.5 LTS (Trusty Tahr)
根据系统版本选择相应的目录
下载离线安装文件
qtcreator-ros-xxx-latest-offline-installer.run(xxx表示版本号bionic/xenial/trusty)

二,安装

添加运行权限
在终端中切换到安装文件所在的目录,然后运行
18.04 chmod +x qtcreator-ros-bionic-latest-offline-installer.run
16.04 chmod +x qtcreator-ros-xenial-latest-offline-installer.run
14.04 chmod +x qtcreator-ros-trusty-latest-offline-installer.run
运行安装包
18.04 ./qtcreator-ros-bionic-latest-offline-installer.run
16.04 ./qtcreator-ros-xenial-latest-offline-installer.run
14.04 ./qtcreator-ros-trusty-latest-offline-installer.run

在这里插入图片描述

三,创建快捷方式

默认三没有快捷方式的
在桌面新建:

nano qtcreater-ros.desktop

填入以下内容(将exec改为你自己的安装路径):

[Desktop Entry]
Type=Application
Exec=bash -i -c /home/chengyangkj/QtCreator-ros/Tools/QtCreator/bin/qtcreator
Name=Qt Creator
GenericName=The IDE of choice for Qt development.
Icon=QtProject-qtcreator
Terminal=false
Categories=Development;IDE;Qt;
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;applicati$


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值