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

Revision history [back]

Your CMake and error are pretty clear:

Could not find a configuration file for package "OpenCV" that is compatible
  with requested version "4.2.0".
  The following configuration files were considered but not accepted:
    C:/opt/rosdeps/x64/CMake/OpenCVConfig.cmake, version: 3.4.1

It is looking for 4.2.0 but found your installed version 3.4.1.

In your CMakeLists:

find_package(OpenCV 4.2.0 REQUIRED)

It requires this version. You have a version mismatch.