ros2 / ros1_bridge

ROS 2 package that provides bidirectional communication between ROS 1 and ROS 2
Apache License 2.0
436 stars 283 forks source link

Could not find configuration file provided by "opencv_calib3d" when building ros1_bridge #307

Closed destkk closed 3 years ago

destkk commented 3 years ago

Operating System: Ubuntu 20.04 DDS Implementation CycloneDDS.

Hi there. I have tried building ros1_bridge based on the instructions but I am facing an issue (see issue below) after executing colcon build --packages-select ros1_bridge --cmake-force-configure.

Starting >>> ros1_bridge
--- stderr: ros1_bridge                         
CMake Error at /opt/ros/foxy/share/theora_image_transport/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):
  By not providing "Findopencv_calib3d.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "opencv_calib3d", but CMake did not find one.

  Could not find a package configuration file provided by "opencv_calib3d"
  with any of the following names:

    opencv_calib3dConfig.cmake
    opencv_calib3d-config.cmake

  Add the installation prefix of "opencv_calib3d" to CMAKE_PREFIX_PATH or set
  "opencv_calib3d_DIR" to a directory containing one of the above files.  If
  "opencv_calib3d" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /opt/ros/foxy/share/theora_image_transport/cmake/theora_image_transportConfig.cmake:41 (include)
  CMakeLists.txt:97 (find_package)

---
Failed   <<< ros1_bridge [2.92s, exited with code 1]

Summary: 0 packages finished [3.05s]
  1 package failed: ros1_bridge
  1 package had stderr output: ros1_bridge

Does anyone know how to resolve this issue? Thanks in advance.

tfoote commented 3 years ago

That usually means that you're missing a dependency built in your workspace.

Please ask questions on http://answers.ros.org according to our support policy: http://wiki.ros.org/Support We try to keep the issue tracker reserved for bugs and feature developments.

When you ask there, please provide enough information to fully reproduce your environment as that's likely your problem not the command run at the end.