参考安装:https://blog.csdn.net/shy19910509/article/details/86286402
下载链接:https://blog.csdn.net/shy19910509/article/details/86286402
参考链接:http://www.pianshen.com/article/30001267/
1、注意版本,对应的系统下载的软件名为qt-opensource-linux-x64-5.8.0.run,接着为.run文件赋权限并且执行,在终端输入指令:
cd ~/Downloads
chmod +x qt-opensource-linux-x64-5.8.0.run
./qt-opensource-linux-x64-5.8.0.run
2、安装过程,选择路径尽量选择到/opt下.
安装完成后,从左上角的DashHome中输入qt,如果看到qt图标指安装成功.
打开终端,输入命令
gedit~/.local/share/applications/DigiaQtOpenSource-qtcreator.desktop
gedit /usr/share/applications/DigiaQtOpenSource-qtcreator.desktop
3、上述命令需要根据你安装的qt路径来决定,如果你装在/home下,则输入第一行指令,如果安装在/opt下,则输入第二行指令.
修改具体的桌面快捷方式
[Desktop Entry]
Type=Application
Exec=/home/ubu/Qt5.8.0/Tools/QtCreator/bin/qtcreator
Name=Qt Creator (Community)
GenericName=The IDE of choice for Qt development.
Icon=QtProject-qtcreator
Terminal=false
Categories=Development;IDE;Qt;
4.MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;
5、修改Exec变量,中间添加bash -i -c ,最后变成Exec=bash -i -c /home/ubu/Qt5.8.0/Tools/QtCreator/bin/qtcreator,目的是为了能够编译ros环境,最后保存.
备注,做完第二步即可