ubuntu18.04 在QT中添加ros环境搭建 亲测可用

http://wjhsh.net/birdBull-p-14914185.html

sudo apt-get install ros-melodic-qt-create ros-melodic-qt-build

/opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113: error: Project ‘cv_bridge’ specifies ‘/usr/include/opencv’ as an include dir, which is not found. It does neither exist as an absolute directory nor in ‘${prefix}//usr/include/opencv’. Check the issue tracker ‘https://github.com/ros-perception/vision_opencv/issues’ and consider creating a ticket if the problem has not been reported yet. /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) robot_hmi/CMakeLists.txt:14 (find_package)

修改方法:只需修改上述路径中的cv_bridgeconfig.cmke文件,将100行附近的两个opencv改成opencv4即可(注意,只需要改动单独一个的opencv,前面有连字符的opencv不需要改动)

/opt/ros/melodic/share/catkin/cmake/atomic_configure_file.cmake:10: error: file COPY cannot set permissions on “/home/yong/catkin_ws/devel/setup.sh” /opt/ros/melodic/share/catkin/cmake/catkin_generate_environment.cmake:52 (atomic_configure_file) /opt/ros/melodic/share/catkin/cmake/all.cmake:190 (catkin_generate_environment) /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:58 (find_package)

你可能感兴趣的:(qt实战,ubuntu)