ros-perception / vision_opencv

Apache License 2.0
536 stars 599 forks source link

cannot install vision_opencv from binaries with libopencv-contrib-dev installed. #522

Open JHeuverRiwo opened 4 months ago

JHeuverRiwo commented 4 months ago

I need to have the aruco functionality provided in libopencv-contrib-dev. However the binary for image_geometry depends on libopencv-dev. These two packages conflict on my system and installing the one will uninstall the other.

Compiling image_geometry from source will result in the following error when I have libopencv-contrib-dev installed:

Starting >>> image_geometry                               
--- stderr: image_geometry                                      
CMake Error at CMakeLists.txt:18 (find_package):
  Could not find a package configuration file provided by "OpenCV" (requested
  version 4) with any of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.

System: jetson orin nx 16gb (zedbox) ubuntu: 20.04 focal jetpack: 5.1.1 ros2: humble (binaries taken from nvidia isaac ros buildfarm)