1.找到QT的啟動文件~.desktop并修改
Exec=bash --init-file/home/aubo/.bashrc.with_ros -i -c qtcreator %F
- ./pro中添加ros庫
QMAKE_CXXFLAGS += -std=c++11
INCLUDEPATH += /opt/ros/kinetic/include
DEPENDPATH += /opt/ros/kinetic/include
LIBS += -L/opt/ros/kinetic/lib -lroscpp -lroslib -lrosconsole -lroscpp_serialization -lrostime
LIBS += /opt/ros/kinetic/lib/libxmlrpcpp.so
/opt/ros/kinetic/lib/libcpp_common.so
/opt/ros/kinetic/lib/librosconsole_log4cxx.so
/opt/ros/kinetic/lib/librosconsole_backend_interface.so\