ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

CMake Error at /opt/ros/melodic/share/grid_map_cv/cmake/grid_map_cvConfig.cmake:113 (message): Project 'grid_map_cv' specifies '/usr/include/opencv ' as an include dir

asked 2021-03-31 21:20:19 -0600

xzhan mike gravatar image

updated 2021-04-01 08:36:58 -0600

tryan gravatar image

Trying to build some ROS packages, but keep saying this error. Opencv is installed and it does have the opencv file in the path indicated. I have been trying to solve this issue for so long. Thank you for help!

Errors << ticobot_occupancy_grid:cmake /home/nvidia/catkin_ws/logs/ticobot_occupancy_grid/build.cmake.010.log
CMake Error at /opt/ros/melodic/share/grid_map_cv/cmake/grid_map_cvConfig.cmake:113 (message):
Project 'grid_map_cv' 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
'' and consider creating a
ticket if the problem has not been reported yet.
Call Stack (most recent call first):
/opt/ros/melodic/share/grid_map_ros/cmake/grid_map_rosConfig.cmake:197 (find_package)
/opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
CMakeLists.txt:12 (find_package)

image description image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-04-06 14:59:19 -0600

xzhan mike gravatar image

updated 2021-04-06 23:03:31 -0600

jayess gravatar image

In /opt/ros/melodic/share/grid_map_cv/cmake/grid_map_cvConfig.cmake


if(NOT "include;/usr/include;/usr/include/opencv " STREQUAL " ")

set(grid_map_cv_INCLUDE_DIRS "")

set(_include_dirs "include;/usr/include;/usr/include/opencv")


if(NOT "include;/usr/include;/usr/include/opencv " STREQUAL " ")

set(grid_map_cv_INCLUDE_DIRS " include;/usr/include;/usr/include/opencv ")

set(_include_dirs "include;/usr/include;/usr/include/opencv")

Solved my problem!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2021-03-31 21:20:19 -0600

Seen: 506 times

Last updated: Apr 06 '21