Ubuntu下 QT中配置ROS-Kinetic

打开qtcreater自动加载ros环境,通过修改*.desktop文件

gedit ~/.local/share/applications/qtcreator.desktop

将其中Exec=XXX这一行,改为

Exec=bash --init-file /home/username/.bashrc.with_ros -i -c XXX

另外,在*.pro文件中添加

INCLUDEPATH += /opt/ros/kinetic/include/opencv-xxx-dev \
/opt/ros/kinetic/include LIBS += -L /opt/ros/kinetic/lib/x86_64-linux-gnu/libopencv_* LIBS += -L /opt/ros/kinetic/lib/lib*.so*

参考:

https://blog.csdn.net/charles_neil/article/details/80888942     配置desktop文件

https://www.ncnynl.com/archives/201701/1277.html             QT+ROS配置

上一篇:Web服务器在外网能裸奔多久?


下一篇:C#制作ActiveX控件中调用海康SDK的问题